pub struct CompressionHandler { /* private fields */ }
Expand description
Handler for Pingora’s request_filter
phase
Trait Implementations§
Source§impl Debug for CompressionHandler
impl Debug for CompressionHandler
Source§impl RequestFilter for CompressionHandler
impl RequestFilter for CompressionHandler
Source§type Conf = CompressionConf
type Conf = CompressionConf
Configuration type of this handler.
Source§type CTX = ()
type CTX = ()
Per-request state of this handler, see
pingora_proxy::ProxyHttp::CTX
Source§fn new_ctx() -> Self::CTX
fn new_ctx() -> Self::CTX
Creates a new sate object, see
pingora_proxy::ProxyHttp::new_ctx
Source§fn request_filter<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session: &'life1 mut Session,
_ctx: &'life2 mut Self::CTX,
) -> Pin<Box<dyn Future<Output = Result<RequestFilterResult, Box<Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn request_filter<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session: &'life1 mut Session,
_ctx: &'life2 mut Self::CTX,
) -> Pin<Box<dyn Future<Output = Result<RequestFilterResult, Box<Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Handler to run during Pingora’s
request_filter
state, see
pingora_proxy::ProxyHttp::request_filter
. This uses a different return type to account
for the existence of multiple request filters.Source§fn new(conf: Self::Conf) -> Result<Self, Box<Error>>
fn new(conf: Self::Conf) -> Result<Self, Box<Error>>
Creates a new instance of the handler from its configuration.
Auto Trait Implementations§
impl Freeze for CompressionHandler
impl RefUnwindSafe for CompressionHandler
impl Send for CompressionHandler
impl Sync for CompressionHandler
impl Unpin for CompressionHandler
impl UnwindSafe for CompressionHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more