From f3af6fb6589c4c309437b9ab177cf886686163d8 Mon Sep 17 00:00:00 2001 From: Igor Novgorodov Date: Sat, 31 Aug 2024 20:49:11 +0200 Subject: [PATCH] add X_REAL_IP header --- src/http/headers.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http/headers.rs b/src/http/headers.rs index d46b08c..d985249 100644 --- a/src/http/headers.rs +++ b/src/http/headers.rs @@ -23,6 +23,7 @@ pub const X_IC_CANISTER_ID: HeaderName = HeaderName::from_static("x-ic-canister- pub const X_IC_COUNTRY_CODE: HeaderName = HeaderName::from_static("x-ic-country-code"); pub const X_REQUEST_ID: HeaderName = HeaderName::from_static("x-request-id"); pub const X_REQUESTED_WITH: HeaderName = HeaderName::from_static("x-requested-with"); +pub const X_REAL_IP: http::HeaderName = http::HeaderName::from_static("x-real-ip"); // Header values pub const CONTENT_TYPE_CBOR: HeaderValue = HeaderValue::from_static("application/cbor");