pub struct ForwardResponse {
pub version: String,
pub status: u16,
pub reason: String,
pub headers: Vec<(String, String)>,
pub content_length: Option<u64>,
pub is_chunked: bool,
pub connection_close: bool,
}Expand description
Parsed HTTP response from an upstream server.
Fields§
§version: String§status: u16§reason: String§headers: Vec<(String, String)>§content_length: Option<u64>§is_chunked: bool§connection_close: boolTrue if the upstream sent Connection: close.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ForwardResponse
impl RefUnwindSafe for ForwardResponse
impl Send for ForwardResponse
impl Sync for ForwardResponse
impl Unpin for ForwardResponse
impl UnsafeUnpin for ForwardResponse
impl UnwindSafe for ForwardResponse
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