Skip to main content

HttpLoggerBackend

Trait HttpLoggerBackend 

Source
pub trait HttpLoggerBackend {
    // Required method
    fn log_request<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        start_time: SystemTime,
        request: &'life1 Request<Vec<u8>>,
        response: Option<&'life2 Response<Bytes>>,
    ) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Implement this trait for middlewares that can log HTTP traffic.

Required Methods§

Source

fn log_request<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, start_time: SystemTime, request: &'life1 Request<Vec<u8>>, response: Option<&'life2 Response<Bytes>>, ) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Log a HTTP request.

Implementors§