pub struct HttpRequest {
pub method: Method,
pub uri: Uri,
pub headers: HeaderMap,
pub body: Vec<u8>,
pub timestamp_ns: TimestampNs,
}Expand description
HTTP request parsed from any HTTP version
Fields§
§method: MethodHTTP method (GET, POST, etc.)
uri: UriRequest target URI
headers: HeaderMapHTTP headers
body: Vec<u8>Request body bytes
timestamp_ns: TimestampNsWhen this request was observed (nanosecond monotonic timestamp)
Trait Implementations§
Source§impl Clone for HttpRequest
impl Clone for HttpRequest
Source§fn clone(&self) -> HttpRequest
fn clone(&self) -> HttpRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 HttpRequest
impl RefUnwindSafe for HttpRequest
impl Send for HttpRequest
impl Sync for HttpRequest
impl Unpin for HttpRequest
impl UnsafeUnpin for HttpRequest
impl UnwindSafe for HttpRequest
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