pub struct LoggingHandler;Expand description
Default handler that logs requests and responses without modification.
Trait Implementations§
Source§impl RequestHandler for LoggingHandler
impl RequestHandler for LoggingHandler
Source§fn handle_request(&self, req: &mut Request<BoxBody>)
fn handle_request(&self, req: &mut Request<BoxBody>)
Called before forwarding the request to upstream.
Modify the request in place to alter what gets sent.
Source§fn handle_response(&self, res: &mut Response<BoxBody>)
fn handle_response(&self, res: &mut Response<BoxBody>)
Called before sending the response back to the client.
Modify the response in place to alter what the client receives.
Auto Trait Implementations§
impl Freeze for LoggingHandler
impl RefUnwindSafe for LoggingHandler
impl Send for LoggingHandler
impl Sync for LoggingHandler
impl Unpin for LoggingHandler
impl UnsafeUnpin for LoggingHandler
impl UnwindSafe for LoggingHandler
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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