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.