pub struct LoggingMiddleware { /* private fields */ }
Expand description
HTTP request logging middleware that logs request details and response status
Implementations§
Source§impl LoggingMiddleware
impl LoggingMiddleware
Sourcepub fn with_body_logging(self) -> Self
pub fn with_body_logging(self) -> Self
Enable request body logging (use with caution for sensitive data)
Sourcepub fn with_response_headers(self) -> Self
pub fn with_response_headers(self) -> Self
Enable response headers logging
Trait Implementations§
Source§impl Debug for LoggingMiddleware
impl Debug for LoggingMiddleware
Source§impl Default for LoggingMiddleware
impl Default for LoggingMiddleware
Source§impl Middleware for LoggingMiddleware
impl Middleware for LoggingMiddleware
Source§fn handle(&self, request: ElifRequest, next: Next) -> NextFuture<'static>
fn handle(&self, request: ElifRequest, next: Next) -> NextFuture<'static>
Handle the request and call the next middleware in the chain
Auto Trait Implementations§
impl Freeze for LoggingMiddleware
impl RefUnwindSafe for LoggingMiddleware
impl Send for LoggingMiddleware
impl Sync for LoggingMiddleware
impl Unpin for LoggingMiddleware
impl UnwindSafe for LoggingMiddleware
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