Multipart + Hyper
Client- and server-side abstractions for HTTP file uploads (POST requests with Content-Type: multipart/form-data
).
Provides integration with Hyper via the hyper
feature. More to come!
####Documentation
Usage
In your Cargo.toml
:
# Currently only useful with `hyper` and `url` crates:
[]
= "*"
= "*"
[]
= "*" # Or use the version in the Crates.io badge above.
# You can also select which features to compile:
# default-features = false
# features = ["hyper", "server", "client"]
Client-side example using Hyper (features = ["hyper", "client"]
or default):
extern crate hyper;
extern crate multipart;
extern crate url;
use Request;
use Method;
use Multipart;
use Url;
Server-side example using Hyper (features = ["hyper", "server"]
or default):
use Fresh;
use ;
use Multipart;
use Switch;
License
MIT