pub struct RequestAttributes(/* private fields */);Expand description
Available in HTTP filters during a request.
Implementations§
Source§impl RequestAttributes
impl RequestAttributes
Sourcepub fn headers(&self) -> Option<Vec<(String, Vec<u8>)>>
pub fn headers(&self) -> Option<Vec<(String, Vec<u8>)>>
All request headers indexed by the lower-cased header name Header values in request.headers associative array are comma-concatenated in case of multiple values.
Sourcepub fn time(&self) -> Option<SystemTime>
pub fn time(&self) -> Option<SystemTime>
Time of the first byte received
Sourcepub fn protocol(&self) -> Option<String>
pub fn protocol(&self) -> Option<String>
Request protocol (“HTTP/1.0”, “HTTP/1.1”, “HTTP/2”, or “HTTP/3”)
Sourcepub fn query(&self) -> Option<String>
pub fn query(&self) -> Option<String>
The query portion of the URL in the format of “name1=value1&name2=value2”.
Sourcepub fn duration(&self) -> Option<Duration>
pub fn duration(&self) -> Option<Duration>
Total duration of the request Available in HTTP filters after a request is complete.
Sourcepub fn size(&self) -> Option<usize>
pub fn size(&self) -> Option<usize>
Size of the request body. Content length header is used if available. Available in HTTP filters after a request is complete.
Sourcepub fn total_size(&self) -> Option<usize>
pub fn total_size(&self) -> Option<usize>
Total size of the request including the approximate uncompressed size of the headers Available in HTTP filters after a request is complete.