Struct finchers_core::input::RequestBody
[−]
[src]
pub struct RequestBody { /* fields omitted */ }
An asyncrhonous stream to receive the chunks of incoming request body.
Methods
impl RequestBody
[src]
pub fn empty() -> RequestBody
[src]
Create an instance of empty RequestBody
.
pub fn once<T>(body: T) -> RequestBody where
T: Into<Bytes>,
[src]
T: Into<Bytes>,
Create an instance of RequestBody
from a chunk of bytes.
pub fn from_hyp(body: Body) -> RequestBody
[src]
Create an instance of RequestBody
from hyper::Body
.
pub fn poll_data(&mut self) -> PollResult<Option<Data>, PollDataError>
[src]
Poll an element of Chunk
.