Struct tsukuyomi::input::body::RequestBody [−][src]
pub struct RequestBody { /* fields omitted */ }A type representing a message body in the incoming HTTP request.
Methods
impl RequestBody[src]
impl RequestBodypub fn is_gone(&self) -> bool[src]
pub fn is_gone(&self) -> boolReturns 'true' if the instance of raw message body has already taken away.
pub fn payload(&mut self) -> Payload[src]
pub fn payload(&mut self) -> PayloadCreates an instance of "Payload" from the raw message body.
pub fn read_all(&mut self) -> ReadAll[src]
pub fn read_all(&mut self) -> ReadAllCreates an instance of "ReadAll" from the raw message body.
pub fn is_upgraded(&self) -> bool[src]
pub fn is_upgraded(&self) -> boolReturns 'true' if the upgrade function is set.
pub fn on_upgrade<T: OnUpgrade>(&mut self, on_upgrade: T) -> Option<T>[src]
pub fn on_upgrade<T: OnUpgrade>(&mut self, on_upgrade: T) -> Option<T>Registers the upgrade function to this request.
Trait Implementations
impl Debug for RequestBody[src]
impl Debug for RequestBodyAuto Trait Implementations
impl Send for RequestBody
impl Send for RequestBodyimpl !Sync for RequestBody
impl !Sync for RequestBody