Trait axum::ServiceExt
source · pub trait ServiceExt<R>: Service<R> + Sized {
// Required method
fn into_make_service(self) -> IntoMakeService<Self>;
}Expand description
Extension trait that adds additional methods to any Service.
Required Methods§
sourcefn into_make_service(self) -> IntoMakeService<Self>
fn into_make_service(self) -> IntoMakeService<Self>
Convert this service into a MakeService, that is a Service whose
response is another service.
This is commonly used when applying middleware around an entire Router. See “Rewriting
request URI in middleware” for more details.