pub struct HttpRequestFields {Show 16 fields
pub host: Option<String>,
pub http_url: Option<String>,
pub http_status_code: Option<i64>,
pub http_method: Option<String>,
pub http_ip: Option<String>,
pub http_request_id: Option<String>,
pub http_country: Option<String>,
pub http_useragent: Option<String>,
pub http_url_details_host: Option<String>,
pub http_url_details_path: Option<String>,
pub http_url_details_query_string: Option<Map<String, Value>>,
pub http_url_details_scheme: Option<String>,
pub http_version: Option<String>,
pub authentication_type: Option<HttpRequestFieldsAuthenticationType>,
pub user_id: Option<String>,
pub response_headers: Option<BTreeMap<String, String>>,
}Expand description
HTTP request/response context shared by log types that originate from an inbound HTTP request (unified_proxy_api and mcp).
Fields§
§host: Option<String>The hostname that served the request.
http_url: Option<String>The full URL of the request (with sensitive paths masked).
http_status_code: Option<i64>The HTTP status code of the response.
http_method: Option<String>The HTTP method of the request.
http_ip: Option<String>The IP address of the client.
http_request_id: Option<String>The Cloudflare Ray ID for the request.
http_country: Option<String>The country code of the client (from Cloudflare).
http_useragent: Option<String>The User-Agent header of the request.
http_url_details_host: Option<String>The hostname portion of the request URL.
http_url_details_path: Option<String>The path portion of the request URL. On mcp rows the token segment is masked in full, so the value is always /mcp/[redacted] and identifies nothing — use mcp_server_id / mcp_server_name instead.
http_url_details_query_string: Option<Map<String, Value>>The parsed query string parameters of the request URL.
http_url_details_scheme: Option<String>The URL scheme.
http_version: Option<String>The HTTP protocol version.
authentication_type: Option<HttpRequestFieldsAuthenticationType>How the request was authenticated.
user_id: Option<String>The ID of the authenticated user, if applicable.
response_headers: Option<BTreeMap<String, String>>The response headers returned to the client.