HeadersState

Trait HeadersState 

Source
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§

Source

fn handler(&self) -> &dyn HeadersHandler

Returns a handler for accessing the headers of the current HTTP Flow.

Source

fn contains_body(&self) -> bool

Returns true if the current HTTP Flow contains body.

Implementors§