pub struct RequestMetadata {
pub method: Method,
pub scheme: Option<Scheme>,
pub authority: Option<Authority>,
pub path: Option<Path>,
pub version: Option<Version>,
pub fields: Fields,
pub content_length: Option<u64>,
pub persistent: Option<bool>,
pub protocol: Option<Protocol>,
}Expand description
Protocol-independent request metadata. Components are preserved as supplied, except that schemes and authorities are stored lowercase; drivers validate target combinations and wire syntax before transmission.
Fields§
§method: Method§scheme: Option<Scheme>§path: Option<Path>Path and optional query, or the supplied request-target form. None
represents a request such as traditional CONNECT with no path.
version: Option<Version>§fields: Fields§content_length: Option<u64>Declared representation length, independent of whether this message has readable data (for example HEAD and 304 responses).
persistent: Option<bool>Outgoing connection reuse preference. Received hop-specific decisions are retained by the protocol exchange, rather than forwarded as fields.
protocol: Option<Protocol>Implementations§
Trait Implementations§
Source§impl Clone for RequestMetadata
impl Clone for RequestMetadata
Auto Trait Implementations§
impl Freeze for RequestMetadata
impl RefUnwindSafe for RequestMetadata
impl Send for RequestMetadata
impl Sync for RequestMetadata
impl Unpin for RequestMetadata
impl UnsafeUnpin for RequestMetadata
impl UnwindSafe for RequestMetadata
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