pub struct ForwardRequest {
pub method: String,
pub path: String,
pub version: String,
pub headers: Vec<(String, String)>,
pub target: TargetAddr,
pub has_body: bool,
pub content_length: Option<u64>,
pub is_chunked: bool,
pub connection_close: bool,
}Expand description
A parsed HTTP request ready for forwarding.
Fields§
§method: String§path: String§version: String§headers: Vec<(String, String)>§target: TargetAddr§has_body: bool§content_length: Option<u64>§is_chunked: bool§connection_close: boolTrue if the client sent Connection: close.
Implementations§
Source§impl ForwardRequest
impl ForwardRequest
Sourcepub fn body_kind(&self) -> RequestBodyKind
pub fn body_kind(&self) -> RequestBodyKind
Compute the request body kind from parsed fields.
Trait Implementations§
Source§impl Clone for ForwardRequest
impl Clone for ForwardRequest
Source§fn clone(&self) -> ForwardRequest
fn clone(&self) -> ForwardRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ForwardRequest
impl RefUnwindSafe for ForwardRequest
impl Send for ForwardRequest
impl Sync for ForwardRequest
impl Unpin for ForwardRequest
impl UnsafeUnpin for ForwardRequest
impl UnwindSafe for ForwardRequest
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