Trait ModifyResponseBody

Source
pub trait ModifyResponseBody: Sync + Send {
    // Required method
    fn handle(&self, data: Bytes) -> Result<Bytes>;

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

Trait for modifying the response body

Required Methods§

Source

fn handle(&self, data: Bytes) -> Result<Bytes>

Provided Methods§

Source

fn name(&self) -> String

Implementors§