Trait pingora_core::modules::http::HttpModule
source · pub trait HttpModule {
// Required methods
fn as_any(&self) -> &dyn Any;
fn as_any_mut(&mut self) -> &mut dyn Any;
// Provided methods
fn request_header_filter(&mut self, _req: &mut RequestHeader) -> Result<()> { ... }
fn request_body_filter(
&mut self,
body: Option<Bytes>
) -> Result<Option<Bytes>> { ... }
fn response_filter(&mut self, _t: &mut HttpTask) -> Result<()> { ... }
}
Expand description
The trait an HTTP traffic module needs to implement