Skip to main content

ClientBody

Type Alias ClientBody 

Source
pub type ClientBody = BoxBody<Bytes, Box<dyn Error + Send + Sync>>;
Expand description

The type-erased body type used internally by HttpClient.

All request bodies are converted to this type before being sent over the wire, which ensures a single monomorphization of the underlying HTTP/2 and TLS stacks regardless of the caller’s body type.

Aliased Type§

pub struct ClientBody { /* private fields */ }