pub trait HeadersState: IntoBodyState + IntoBodyStreamState {
// Required methods
fn handler(&self) -> &dyn HeadersHandler;
fn contains_body(&self) -> bool;
}Expand description
Abstract Headers state of the HTTP Flow state-machine.
Required Methods§
Sourcefn handler(&self) -> &dyn HeadersHandler
fn handler(&self) -> &dyn HeadersHandler
Returns a handler for accessing the headers of the current HTTP Flow.
Sourcefn contains_body(&self) -> bool
fn contains_body(&self) -> bool
Returns true if the current HTTP Flow contains body.