Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md switch to rocket 0.4 Dec 8, 2018
hyper_client.rs
hyper_reqbuilder.rs Add comment to hyper_reqbuilder example Aug 3, 2016
hyper_server.rs Fix compiler and Clippy nags May 11, 2018
iron.rs Update dependencies May 11, 2018
iron_intercept.rs Add iron-intercept example Aug 3, 2016
nickel.rs Fix compiler and Clippy nags May 11, 2018
rocket.rs switch to rocket 0.4 Dec 8, 2018
tiny_http.rs Remove unused uses May 11, 2018

README.md

multipart Examples

These example files show how to use multipart with the various crates it integrates with.

These files carry the same licenses as multipart itself, though this may be lightened to a copyright-free license in the near future.

Client

Examples for the client-side integrations of multipart's API.

hyper_client

Author: abonander

This example showcases usage of multipart with the hyper::client::Request API.

$ cargo run --example hyper_client

hyper_reqbuilder

Author: abonander

This example showcases usage of multipart with Hyper's new Client API, via the lazy-writing capabilities of multipart::client::lazy.

$ cargo run --example hyper_reqbuilder

Server

hyper_server

Author: Puhrez

This example shows how to use multipart with a [hyper::Server] (http://hyper.rs/) to intercept multipart requests.

$ cargo run --example hyper_server

iron

Author: White-Oak

This example shows how to use multipart with the Iron web application framework, via multipart's support for the iron::Request type.

To run:

$ cargo run --features iron --example iron

iron_intercept

Author: abonander

This example shows how to use multipart's specialized Intercept middleware with Iron, which reads out all fields and files to local storage so they can be accessed arbitrarily.

$ cargo run --features iron --example iron_intercept

tiny_http

Author: White-Oak

This example shows how to use multipart with the tiny_http crate, via multipart's support for the tiny_http::Request type.

$ cargo run --features tiny_http --example tiny_http

hyper_server

Author: Puhrez

This example shows how to use multipart with a [hyper::Server] (http://hyper.rs/) to intercept multipart requests.

$ cargo run --example hyper_server

nickel

Author: iamsebastian

This example shows how to use multipart to handle multipart uploads in nickel.rs.

$ cargo run --example nickel --features nickel

Rocket

Author: abonander

This example shows how multipart's server API can be used with Rocket without explicit support (the Rocket folks seem to want to handle multipart/form-data behind the scenes but haven't gotten around to implementing it yet; this would supercede any integration from multipart).

$ cargo run --example rocket --features "rocket"
You can’t perform that action at this time.