axum/axum-macros/tests/from_request/pass
David Pedersen 0b26411f39
Change Router::with_state and impl Service for Router<()> (#1552)
* Implement `Service` for `Router<(), B>`

* wip

* wip

* fix some tests

* fix examples

* fix doc tests

* clean up docs

* changelog

* fix

* also call `with_state` when converting `MethodRouter` into a `MakeService`

* suggestions from review
2022-11-24 14:43:10 +00:00
..
container.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
container_parts.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
empty_named.rs Add type safe state extractor (#1155) 2022-08-17 15:13:31 +00:00
empty_named_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
empty_tuple.rs Add type safe state extractor (#1155) 2022-08-17 15:13:31 +00:00
empty_tuple_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
enum_via.rs Add type safe state extractor (#1155) 2022-08-17 15:13:31 +00:00
enum_via_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
named.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
named_parts.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
named_via.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
named_via_parts.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
override_rejection.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
override_rejection_non_generic.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
override_rejection_non_generic_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
override_rejection_parts.rs Type safe state inheritance (#1532) 2022-11-18 11:02:58 +00:00
override_rejection_with_via_on_enum.rs Support using a different rejection for #[derive(FromRequest)] (#1256) 2022-08-12 16:05:27 +00:00
override_rejection_with_via_on_enum_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
override_rejection_with_via_on_struct.rs Support using a different rejection for #[derive(FromRequest)] (#1256) 2022-08-12 16:05:27 +00:00
override_rejection_with_via_on_struct_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
state_cookie.rs Support State with #[derive(FromRequest[Parts])] (#1391) 2022-09-23 23:50:50 +02:00
state_enum_via.rs Change Router::with_state and impl Service for Router<()> (#1552) 2022-11-24 14:43:10 +00:00
state_enum_via_parts.rs Change Router::with_state and impl Service for Router<()> (#1552) 2022-11-24 14:43:10 +00:00
state_explicit.rs Change Router::with_state and impl Service for Router<()> (#1552) 2022-11-24 14:43:10 +00:00
state_explicit_parts.rs Change Router::with_state and impl Service for Router<()> (#1552) 2022-11-24 14:43:10 +00:00
state_field_explicit.rs Change Router::with_state and impl Service for Router<()> (#1552) 2022-11-24 14:43:10 +00:00
state_field_infer.rs Change Router::with_state and impl Service for Router<()> (#1552) 2022-11-24 14:43:10 +00:00
state_infer.rs Support State with #[derive(FromRequest[Parts])] (#1391) 2022-09-23 23:50:50 +02:00
state_infer_multiple.rs Support State with #[derive(FromRequest[Parts])] (#1391) 2022-09-23 23:50:50 +02:00
state_infer_parts.rs Support State with #[derive(FromRequest[Parts])] (#1391) 2022-09-23 23:50:50 +02:00
state_via.rs Change Router::with_state and impl Service for Router<()> (#1552) 2022-11-24 14:43:10 +00:00
state_via_infer.rs Change Router::with_state and impl Service for Router<()> (#1552) 2022-11-24 14:43:10 +00:00
state_via_parts.rs Change Router::with_state and impl Service for Router<()> (#1552) 2022-11-24 14:43:10 +00:00
state_with_rejection.rs Change Router::with_state and impl Service for Router<()> (#1552) 2022-11-24 14:43:10 +00:00
tuple.rs Add type safe state extractor (#1155) 2022-08-17 15:13:31 +00:00
tuple_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
tuple_same_type_twice.rs Only allow last extractor to mutate the request (#1272) 2022-08-22 12:23:20 +02:00
tuple_same_type_twice_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
tuple_same_type_twice_via.rs Only allow last extractor to mutate the request (#1272) 2022-08-22 12:23:20 +02:00
tuple_same_type_twice_via_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
tuple_via.rs Add type safe state extractor (#1155) 2022-08-17 15:13:31 +00:00
tuple_via_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00
unit.rs Add type safe state extractor (#1155) 2022-08-17 15:13:31 +00:00
unit_parts.rs Add #[derive(FromRequestParts)] (#1305) 2022-08-23 19:14:02 +00:00