pub struct HttpRequestLayer { /* private fields */ }Expand description
Tower layer
Implementations§
Source§impl HttpRequestLayer
impl HttpRequestLayer
Sourcepub fn with_inspect_headers(
self,
inspect_headers: &'static [&'static HeaderName],
) -> Self
pub fn with_inspect_headers( self, inspect_headers: &'static [&'static HeaderName], ) -> Self
Specifies list of headers you want to inspect via http.headers attribute.
By default none of the headers are inspected
Sourcepub fn with_extract_client_ip(self, extract_client_ip: ExtractClientIp) -> Self
pub fn with_extract_client_ip(self, extract_client_ip: ExtractClientIp) -> Self
Customizes client ip extraction method
Default extracts none
Trait Implementations§
Source§impl Clone for HttpRequestLayer
impl Clone for HttpRequestLayer
Source§fn clone(&self) -> HttpRequestLayer
fn clone(&self) -> HttpRequestLayer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HttpRequestLayer
impl RefUnwindSafe for HttpRequestLayer
impl Send for HttpRequestLayer
impl Sync for HttpRequestLayer
impl Unpin for HttpRequestLayer
impl UnwindSafe for HttpRequestLayer
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