Commit Graph
10 Commits
Author SHA1 Message Date
David Pedersen fb5219f9cd fix docs 2022-06-29 22:21:28 +02:00
David Pedersen 276a950b67 Only accept Router in Resource::{nest, nest_collection} 2022-06-29 22:20:12 +02:00
David Pedersen 23721f213f Merge branch 'main' into separate-nesting-opaque-services 2022-06-29 21:21:29 +02:00
David Pedersen 2ddd0a230c Break Router::nest into nest and nest_service methods 2022-06-11 13:19:27 +02:00
David Pedersen d943ba6d81 Replace HasRoutes with Into<Router> (#819)
* Move `HasRoutes` into axum

* fix doc test

* Just use `Into<Router>`
2022-03-03 21:50:31 +00:00
David Pedersen 515495d957 Set content-length for responses to HEAD requests (#734)
* Set `content-length` internally in `Router`

* changelog

* require `B: HttpBody` at the `impl`

* add changelog refs
2022-01-31 13:48:51 +01:00
Kai Jewson dfb06e721c Introduce Response type alias as a shorthand for Response<BoxBody> (#590)
* Introduce `Response` type alias as a shorthand

* Don't re-export `Response` at the crate root
2021-12-05 19:16:46 +01:00
Jonas Platte 69fee5864d Use .to_owned() instead of .to_string() to turn &str into String (#548) 2021-11-19 22:15:47 +00:00
David Pedersen ab9f1ef993 Change how Resources are added to Routers (#544) 2021-11-19 21:59:07 +01:00
David Pedersen f9a437d081 Add Resource to axum-extra (#538) 2021-11-17 22:31:43 +00:00