axum/examples
David Pedersen f32d325e55
Make extractors easier to write (#36)
Previously extractors worked directly on `Request<B>` which meant you
had to do weird tricks like `mem::take(req.headers_mut())` to get owned
parts of the request.

This changes that instead to use a new `RequestParts` type that have
methods to "take" each part of the request. Without having to do weird
tricks.

Also removed the need to have `B: Default` for body extractors.
2021-07-22 13:23:50 +02:00
..
templates Add HTML template example (#17) 2021-06-13 13:58:12 +02:00
websocket Add support for websockets (#3) 2021-06-12 20:50:30 +02:00
error_handling_and_dependency_injection.rs Rename to axum (#28) 2021-07-09 21:36:14 +02:00
form.rs Rename to axum (#28) 2021-07-09 21:36:14 +02:00
hello_world.rs Rename to axum (#28) 2021-07-09 21:36:14 +02:00
key_value_store.rs Make extractors easier to write (#36) 2021-07-22 13:23:50 +02:00
multipart_form.rs Add Multipart extractor for consuming multipart/form-data requests (#32) 2021-07-14 16:53:37 +02:00
README.md Rename to axum (#28) 2021-07-09 21:36:14 +02:00
static_file_server.rs Rename to axum (#28) 2021-07-09 21:36:14 +02:00
templates.rs Rename to axum (#28) 2021-07-09 21:36:14 +02:00
testing.rs Rename to axum (#28) 2021-07-09 21:36:14 +02:00
tokio_postgres.rs Rename to axum (#28) 2021-07-09 21:36:14 +02:00
versioning.rs Make extractors easier to write (#36) 2021-07-22 13:23:50 +02:00
websocket.rs Rename to axum (#28) 2021-07-09 21:36:14 +02:00

Examples