Skip to main content

body_with_hook

Function body_with_hook 

Source
pub fn body_with_hook(body: HttpBody, hook: Option<EndHook>) -> HttpBody
Expand description

body with hook attached: a stream is wrapped, an in-memory body becomes a one-piece stream so the hook still fires when it is consumed.