Struct tsukuyomi::local::Data [−][src]
pub struct Data(_);
A type representing a received HTTP message data from the server.
This type is usually used by the testing framework.
Methods
impl Data
[src]
impl Data
pub fn is_sized(&self) -> bool
[src]
pub fn is_sized(&self) -> bool
pub fn is_chunked(&self) -> bool
[src]
pub fn is_chunked(&self) -> bool
pub fn content_length(&self) -> Option<usize>
[src]
pub fn content_length(&self) -> Option<usize>
pub fn as_chunks(&self) -> Option<&[Bytes]>
[src]
pub fn as_chunks(&self) -> Option<&[Bytes]>
pub fn to_bytes(&self) -> Cow<[u8]>
[src]
pub fn to_bytes(&self) -> Cow<[u8]>
pub fn to_utf8(&self) -> Result<Cow<str>, Utf8Error>
[src]
pub fn to_utf8(&self) -> Result<Cow<str>, Utf8Error>