Skip to main content

streaming

Function streaming 

Source
pub const fn streaming<H>(handler: H) -> StreamingHandler<H>
Expand description

Mark a handler as consuming RequestBodyStream instead of a pre-buffered body.

Wrap typed handlers as streaming(typed(upload)); omitting streaming intentionally leaves the route in buffered mode and rejects stream extraction.