Trait conjure_runtime::blocking::Body[][src]

pub trait Body {
    fn content_length(&self) -> Option<u64>;
fn content_type(&self) -> HeaderValue;
fn write(&mut self, w: &mut BodyWriter) -> Result<(), Error>;
fn reset(&mut self) -> bool; fn full_body(&self) -> Option<Bytes> { ... } }
Expand description

A synchronous request body.

Required methods

Returns the length of the body if known.

Returns the content type of the body.

Writes the body data out.

Resets the body to its start.

Returns true iff the body was successfully reset.

Requests with non-resettable bodies cannot be retried.

Provided methods

Returns the entire body if it is fully buffered.

write will only be called if this method returns None.

Implementations on Foreign Types

Implementors