pub trait BodyState {
// Required methods
fn handler(&self) -> &dyn BodyHandler;
fn contains_body(&self) -> bool;
}Expand description
Abstract Body state of the HTTP Flow state-machine.
Required Methods§
Sourcefn handler(&self) -> &dyn BodyHandler
fn handler(&self) -> &dyn BodyHandler
Returns a handler for accessing the body of the current HTTP Flow.
Sourcefn contains_body(&self) -> bool
fn contains_body(&self) -> bool
Returns true if the current HTTP Flow contains body.