[][src]Struct izanami::h1::RequestBody

pub struct RequestBody(_);

The message body of an incoming HTTP request.

Methods

impl RequestBody[src]

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

Returns whether the body is complete or not.

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

Returns a length of the total bytes, if possible.

Trait Implementations

impl Debug for RequestBody[src]

impl HttpBody for RequestBody[src]

type Data = Data

The type of bytes generated by this body.

type Error = Box<dyn Error + Send + Sync + 'static>

The error type that will be returned from this body.

Auto Trait Implementations

impl Send for RequestBody

impl !Sync for RequestBody

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T

impl<T> HttpBody for T where
    T: BufStream
[src]

type Data = <T as BufStream>::Item

The type of bytes generated by this body.

type Error = <T as BufStream>::Error

The error type that will be returned from this body.

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

Returns the length of total bytes contained in this body.

impl<T> HttpBodyExt for T where
    T: HttpBody
[src]

fn into_buf_stream(self) -> IntoBufStream<Self>[src]

Lift this body into a BufStream.