pub struct StaticFilesHandler { /* private fields */ }
Expand description
Handler for Pingora’s request_filter
phase
Implementations§
Source§impl StaticFilesHandler
impl StaticFilesHandler
Sourcepub fn conf(&self) -> &StaticFilesConf
pub fn conf(&self) -> &StaticFilesConf
Provides read-only access to the handler’s configuration.
Sourcepub fn conf_mut(&mut self) -> &mut StaticFilesConf
pub fn conf_mut(&mut self) -> &mut StaticFilesConf
Provides read-write access to the handler’s configuration.
Trait Implementations§
Source§impl Debug for StaticFilesHandler
impl Debug for StaticFilesHandler
Source§impl RequestFilter for StaticFilesHandler
impl RequestFilter for StaticFilesHandler
Source§type Conf = StaticFilesConf
type Conf = StaticFilesConf
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 StaticFilesHandler
impl RefUnwindSafe for StaticFilesHandler
impl Send for StaticFilesHandler
impl Sync for StaticFilesHandler
impl Unpin for StaticFilesHandler
impl UnwindSafe for StaticFilesHandler
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