Function http_serve::streaming_body

source ·
pub fn streaming_body<T>(req: &Request<T>) -> StreamingBodyBuilder
Expand description

Adds a streaming body to the given request if a body is needed.

Currently the body is added for non-HEAD requests. In the future, this may also follow conditional GET rules, omitting the body and stripping out entity headers from the response as desired.