axum/examples
David Pedersen f4716084a7
Add middleware::from_fn for creating middleware from async fns (#656)
* Add `middleware::from_fn` for creating middleware from async fns

* More trait impls for `Next`

* Make `Next::run` consume `self`

* Use `.router_layer` in example, since middleware returns early

* Actually `Next` probably shouldn't impl `Clone` and `Service`

Has implications for backpressure and stuff

* Simplify `print-request-response` example

* Address review feedback

* add changelog link
2021-12-27 14:01:26 +01:00
..
2021-12-01 20:14:25 +00:00
2021-12-12 14:19:30 +00:00
2021-12-01 20:14:25 +00:00
2021-12-01 20:14:25 +00:00
2021-12-12 14:19:30 +00:00
2021-12-01 20:14:25 +00:00
2021-12-01 20:14:25 +00:00
2021-12-01 20:14:25 +00:00
2021-12-01 20:14:25 +00:00

Examples

This folder contains numerous example showing how to use axum. Each example is setup as its own crate so its dependencies are clear.

For a list of what the community built with axum, please see the list here.