pub struct HttpRequest {}Expand description
HTTP Request - Format (0,2206)
HTTP request information
§XDR Definition (sFlow HTTP)
/* HTTP protocol version number */
/* Encoded as major_number * 1000 + minor_number */
/* e.g. HTTP1.1 is encoded as 1001 */
typedef unsigned int version;
/* HTTP request */
/* opaque = flow_data; enterprise = 0; format = 2206 */
struct http_request {
http_method method; /* method */
version protocol; /* HTTP protocol version */
string<255> uri; /* URI exactly as it came from the client */
string<64> host; /* Host value from request header */
string<255> referer; /* Referer value from request header */
string<128> useragent; /* User-Agent value from request header */
string<64> xff; /* X-Forwarded-For value
from request header */
string<32> authuser; /* RFC 1413 identity of user*/
string<64> mime-type; /* Mime-Type of response */
unsigned hyper req_bytes; /* Content-Length of request */
unsigned hyper resp_bytes; /* Content-Length of response */
unsigned int uS; /* duration of the operation
(in microseconds) */
int status; /* HTTP status code */
}Fields§
§method: HttpMethodHTTP method
protocol: u32HTTP protocol version (major * 1000 + minor, e.g., HTTP/1.1 = 1001)
uri: StringURI exactly as it came from the client
host: StringHost value from request header
referer: StringReferer value from request header
useragent: StringUser-Agent value from request header
xff: StringX-Forwarded-For value from request header
authuser: StringRFC 1413 identity of user
mime_type: StringMIME type of response
req_bytes: u64Content-Length of request
resp_bytes: u64Content-Length of response
duration_us: u32Duration of the operation in microseconds
status: i32HTTP status code
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 moreSource§impl Debug for HttpRequest
impl Debug for HttpRequest
Source§impl PartialEq for HttpRequest
impl PartialEq for HttpRequest
impl Eq for HttpRequest
impl StructuralPartialEq for HttpRequest
Auto Trait Implementations§
impl Freeze for HttpRequest
impl RefUnwindSafe for HttpRequest
impl Send for HttpRequest
impl Sync for HttpRequest
impl Unpin 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