Skip to main content

ModifyResponseBody

Trait ModifyResponseBody 

Source
pub trait ModifyResponseBody: Sync + Send {
    // Required method
    fn handle(
        &mut self,
        session: &Session,
        body: &mut Option<Bytes>,
        end_of_stream: bool,
    ) -> Result<()>;

    // Provided method
    fn name(&self) -> String { ... }
}
Expand description

Trait for modifying the response body.

Required Methods§

Source

fn handle( &mut self, session: &Session, body: &mut Option<Bytes>, end_of_stream: bool, ) -> Result<()>

Handles the modification of response body data.

Provided Methods§

Source

fn name(&self) -> String

Returns the name of the modifier.

Implementors§