pub struct HttpRequestProperties {Show 15 fields
pub request_method: i32,
pub scheme: String,
pub authority: String,
pub port: Option<UInt32Value>,
pub path: String,
pub user_agent: String,
pub referer: String,
pub forwarded_for: String,
pub request_id: String,
pub original_path: String,
pub request_headers_bytes: u64,
pub request_body_bytes: u64,
pub request_headers: HashMap<String, String>,
pub upstream_header_bytes_sent: u64,
pub downstream_header_bytes_received: u64,
}
Expand description
[#next-free-field: 16]
Fields§
§request_method: i32
The request method (RFC 7231/2616).
scheme: String
The scheme portion of the incoming request URI.
HTTP/2 :authority
or HTTP/1.1 Host
header value.
port: Option<UInt32Value>
The port of the incoming request URI (unused currently, as port is composed onto authority).
path: String
The path portion from the incoming request URI.
user_agent: String
Value of the User-Agent
request header.
referer: String
Value of the Referer
request header.
forwarded_for: String
Value of the X-Forwarded-For
request header.
request_id: String
Value of the X-Request-Id
request header
This header is used by Envoy to uniquely identify a request. It will be generated for all external requests and internal requests that do not already have a request ID.
original_path: String
Value of the X-Envoy-Original-Path
request header.
request_headers_bytes: u64
Size of the HTTP request headers in bytes.
This value is captured from the OSI layer 7 perspective, i.e. it does not include overhead from framing or encoding at other networking layers.
request_body_bytes: u64
Size of the HTTP request body in bytes.
This value is captured from the OSI layer 7 perspective, i.e. it does not include overhead from framing or encoding at other networking layers.
request_headers: HashMap<String, String>
Map of additional headers that have been configured to be logged.
upstream_header_bytes_sent: u64
Number of header bytes sent to the upstream by the http stream, including protocol overhead.
This value accumulates during upstream retries.
downstream_header_bytes_received: u64
Number of header bytes received from the downstream by the http stream, including protocol overhead.
Implementations§
Source§impl HttpRequestProperties
impl HttpRequestProperties
Sourcepub fn request_method(&self) -> RequestMethod
pub fn request_method(&self) -> RequestMethod
Returns the enum value of request_method
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_request_method(&mut self, value: RequestMethod)
pub fn set_request_method(&mut self, value: RequestMethod)
Sets request_method
to the provided enum value.
Trait Implementations§
Source§impl Clone for HttpRequestProperties
impl Clone for HttpRequestProperties
Source§fn clone(&self) -> HttpRequestProperties
fn clone(&self) -> HttpRequestProperties
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for HttpRequestProperties
impl Debug for HttpRequestProperties
Source§impl Default for HttpRequestProperties
impl Default for HttpRequestProperties
Source§impl Message for HttpRequestProperties
impl Message for HttpRequestProperties
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl Name for HttpRequestProperties
impl Name for HttpRequestProperties
Source§const NAME: &'static str = "HTTPRequestProperties"
const NAME: &'static str = "HTTPRequestProperties"
Message
.
This name is the same as it appears in the source .proto file, e.g. FooBar
.Source§const PACKAGE: &'static str = "envoy.data.accesslog.v3"
const PACKAGE: &'static str = "envoy.data.accesslog.v3"
.
, e.g. google.protobuf
.Source§fn full_name() -> String
fn full_name() -> String
Message
.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation
.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for HttpRequestProperties
impl PartialEq for HttpRequestProperties
impl StructuralPartialEq for HttpRequestProperties
Auto Trait Implementations§
impl Freeze for HttpRequestProperties
impl RefUnwindSafe for HttpRequestProperties
impl Send for HttpRequestProperties
impl Sync for HttpRequestProperties
impl Unpin for HttpRequestProperties
impl UnwindSafe for HttpRequestProperties
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request