pub struct StreamingBodyBuilder { /* private fields */ }
Expand description

A builder returned by streaming_body.

Implementations

Sets the size of a data chunk.

This is a compromise between memory usage and efficiency. The default of 4096 is usually fine; increasing will likely only be noticeably more efficient when compression is off.

Sets the gzip compression level. Defaults to 6.

gzip_level should be an integer between 0 and 9 (inclusive). 0 means no compression; 9 gives the best compression (but most CPU usage).

This is only effective if the client supports compression.

Returns the HTTP response and, if the request is a GET, a body writer.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.