Struct tower_http::map_request_body::MapRequestBodyLayer
source · [−]pub struct MapRequestBodyLayer<F> { /* private fields */ }This is supported on crate feature
map-request-body only.Expand description
Apply a transformation to the request body.
See the module docs for an example.
Implementations
Create a new MapRequestBodyLayer.
F is expected to be a function that takes a body and returns another body.
Trait Implementations
Auto Trait Implementations
impl<F> RefUnwindSafe for MapRequestBodyLayer<F> where
F: RefUnwindSafe,
impl<F> Send for MapRequestBodyLayer<F> where
F: Send,
impl<F> Sync for MapRequestBodyLayer<F> where
F: Sync,
impl<F> Unpin for MapRequestBodyLayer<F> where
F: Unpin,
impl<F> UnwindSafe for MapRequestBodyLayer<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
This is supported on crate feature
follow-redirect only.Create a new Policy that returns Action::Follow only if self and other return
Action::Follow. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more