pub struct HttpRequestDeprecated {
pub method: HttpMethod,
pub uri: String,
pub host: String,
pub referer: String,
pub useragent: String,
pub xff: String,
pub authuser: String,
pub mime_type: String,
pub req_bytes: u64,
pub resp_bytes: u64,
pub duration_us: u32,
pub status: i32,
}Expand description
HTTP Request - Format (0,2201) - DEPRECATED
Legacy HTTP request information
Note: This format was defined in an early sFlow HTTP discussion but was deprecated and replaced by format 2206. It is included here for backward compatibility with legacy implementations.
§XDR Definition (sFlow Discussion)
/* HTTP request */
/* opaque = flow_data; enterprise = 0; format = 2201 */
struct http_request {
http_method method; /* method */
string<255> uri; /* URI exactly as it came from the client */
string<32> host; /* Host value from request header */
string<255> referer; /* Referer value from request header */
string<64> 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<32> mime_type; /* Mime-Type */
unsigned hyper req_bytes; /* Content-Length of request */
unsigned hyper resp_bytes; /* Content-Length of response */
unsigned int uS; /* duration of the operation (microseconds) */
int status; /* HTTP status code */
}Fields§
§method: HttpMethodHTTP method
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
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 HttpRequestDeprecated
impl Clone for HttpRequestDeprecated
Source§fn clone(&self) -> HttpRequestDeprecated
fn clone(&self) -> HttpRequestDeprecated
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 HttpRequestDeprecated
impl Debug for HttpRequestDeprecated
Source§impl PartialEq for HttpRequestDeprecated
impl PartialEq for HttpRequestDeprecated
impl Eq for HttpRequestDeprecated
impl StructuralPartialEq for HttpRequestDeprecated
Auto Trait Implementations§
impl Freeze for HttpRequestDeprecated
impl RefUnwindSafe for HttpRequestDeprecated
impl Send for HttpRequestDeprecated
impl Sync for HttpRequestDeprecated
impl Unpin for HttpRequestDeprecated
impl UnwindSafe for HttpRequestDeprecated
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