pub struct ResponseData {
pub request: Option<Request<BoxBody<Bytes, Error>>>,
pub response: Option<Response<BoxBody<Bytes, Error>>>,
pub response_status: Option<StatusCode>,
pub response_headers: Option<HeaderMap>,
pub new_remote_address: Option<SocketAddr>,
}
Expand description
Data related to an HTTP response
Fields§
§request: Option<Request<BoxBody<Bytes, Error>>>
The passed HTTP request
response: Option<Response<BoxBody<Bytes, Error>>>
The HTTP response with a body
response_status: Option<StatusCode>
The HTTP response status code (when the response with a body isn’t set)
response_headers: Option<HeaderMap>
The HTTP response headers
new_remote_address: Option<SocketAddr>
The new client address
Auto Trait Implementations§
impl !Freeze for ResponseData
impl !RefUnwindSafe for ResponseData
impl Send for ResponseData
impl Sync for ResponseData
impl Unpin for ResponseData
impl !UnwindSafe for ResponseData
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