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 RequestBody
pub fn is_gone(&self) -> bool
[src]
pub fn is_gone(&self) -> bool
Returns 'true' if the instance of raw message body has already taken away.
pub fn payload(&mut self) -> Payload
[src]
pub fn payload(&mut self) -> Payload
Creates an instance of "Payload" from the raw message body.
pub fn read_all(&mut self) -> ReadAll
[src]
pub fn read_all(&mut self) -> ReadAll
Creates an instance of "ReadAll" from the raw message body.
pub fn is_upgraded(&self) -> bool
[src]
pub fn is_upgraded(&self) -> bool
Returns '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 RequestBody
Auto Trait Implementations
impl Send for RequestBody
impl Send for RequestBody
impl !Sync for RequestBody
impl !Sync for RequestBody