Function axum::routing::put_service
source · [−]pub fn put_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: HttpBody<Data = Bytes> + Send + 'static,
ResBody::Error: Into<BoxError>,
Expand description
Route PUT
requests to the given service.
See get_service
for an example.