#hyper #async-http #http #upload #async #form-data #client-server

multipart-async

A backend-agnostic extension for asynchronous HTTP libraries that provides support for POST multipart/form-data requests on for both client and server

2 releases

Uses old Rust 2015

0.0.2 Aug 30, 2017
0.0.1 Aug 28, 2017

#17 in #form-data

MIT/Apache

110KB
2K SLoC

Multipart Build Status On Crates.io

Client- and server-side abstractions for HTTP file uploads (POST requests with Content-Type: multipart/form-data).

Supports several different HTTP crates.

###Documentation

##Integrations

Sample projects demonstrating how to use multipart with these crates are available under samples/.

####Hyper via the hyper feature (enabled by default).

Client integration includes support for regular hyper::client::Request objects via multipart::client::Multipart, as well as integration with the new hyper::Client API via multipart::client::lazy::Multipart (new in 0.5).

Server integration for hyper::server::Request via multipart::server::Multipart.

####Iron via the iron feature.

Provides regular server-side integration with iron::Request via multipart::server::Multipart, as well as a convenient BeforeMiddleware implementation in multipart::server::iron::Intercept.

####tiny_http via the tiny_http feature.

Provides server-side integration with tiny_http::Request via multipart::server::Multipart.

####Nickel (New in 0.6!) via the nickel_ feature

Provides server-side integration with &mut nickel::Request via multipart::server::Multipart.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~13MB
~229K SLoC