Skip to main content

split_body

Function split_body 

Source
pub fn split_body<F>(f: F) -> SplitExpression
where F: Fn(&Body) -> Vec<Body> + Send + Sync + 'static,
Expand description

Split the exchange body using a custom function that operates on the body.

Custom closures stay infallible: they own their body-type policy and an empty Vec keeps pass-through semantics.