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

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

A synchronous request body.

Required methods

pub fn content_length(&self) -> Option<u64>[src]

Returns the length of the body if known.

pub fn content_type(&self) -> HeaderValue[src]

Returns the content type of the body.

pub fn write(&mut self, w: &mut BodyWriter) -> Result<(), Error>[src]

Writes the body data out.

pub fn reset(&mut self) -> bool[src]

Resets the body to its start.

Returns true iff the body was successfully reset.

Requests with non-resettable bodies cannot be retried.

Loading content...

Provided methods

pub fn full_body(&self) -> Option<Bytes>[src]

Returns the entire body if it is fully buffered.

write will only be called if this method returns None.

Loading content...

Implementations on Foreign Types

impl<T: ?Sized> Body for Box<T> where
    T: Body
[src]

Loading content...

Implementors

impl Body for BytesBody[src]

Loading content...