Skip to main content

Module body

Module body 

Source
Expand description

Traits and structures to aid consuming and writing HTTP payloads.

Structs§

BodyStream
Type represent streaming body.
BoxedBodyStream
Type represent streaming body. Response does not contain content-length header and appropriate transfer encoding is used.
SizedStream
Type represent streaming body. This body implementation should be used if total size of stream is known. Data get sent as is without using transfer encoding.

Enums§

Body
Type-erased HTTP message body.
BodySize
Size information used when encoding an HTTP message body.
ResponseBody
Response body preserving either a concrete body type or a type-erased body.

Traits§

MessageBody
Interface for types that can be streamed to a peer.