Function axum::routing::patch_service [−][src]
pub fn patch_service<S, ReqBody, ResBody>(
svc: S
) -> MethodRouter<ReqBody, S::Error> where
S: Service<Request<ReqBody>, Response = Response<ResBody>> + Clone + Send + 'static,
S::Future: Send + 'static,
ResBody: Body<Data = Bytes> + Send + 'static,
ResBody::Error: Into<BoxError>,
Expand description
Route PATCH
requests to the given service.
See get_service
for an example.