BodyState

Trait BodyState 

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

Source

fn handler(&self) -> &dyn BodyHandler

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

Source

fn contains_body(&self) -> bool

Returns true if the current HTTP Flow contains body.

Implementors§