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
fn content_length(&self) -> Option<u64>
fn content_length(&self) -> Option<u64>
Returns the length of the body if known.
fn content_type(&self) -> HeaderValue
fn content_type(&self) -> HeaderValue
Returns the content type of the body.