Skip to content

Commit 25d18c9

Browse files
committed
Add X-Forwarded-For header name
tldr; add header name `X-Forwarded-For` as constant in `HeaderNames` static class.
1 parent 76d5c62 commit 25d18c9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Http/Headers/src/HeaderNames.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ public static class HeaderNames
283283
/// <summary>Gets the <c>X-Frame-Options</c> HTTP header name.</summary>
284284
public static readonly string XFrameOptions = "X-Frame-Options";
285285

286+
/// <summary>Gets the <c>X-Forwarded-For</c> HTTP header name.</summary>
287+
public static readonly string XForwardedFor = "X-Forwarded-For";
288+
286289
/// <summary>Gets the <c>X-Requested-With</c> HTTP header name.</summary>
287290
public static readonly string XRequestedWith = "X-Requested-With";
288291

src/Http/Headers/src/PublicAPI.Unshipped.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ static readonly Microsoft.Net.Http.Headers.HeaderNames.Link -> string!
77
static readonly Microsoft.Net.Http.Headers.HeaderNames.ProxyConnection -> string!
88
static readonly Microsoft.Net.Http.Headers.HeaderNames.XContentTypeOptions -> string!
99
static readonly Microsoft.Net.Http.Headers.HeaderNames.XXssProtection -> string!
10+
static readonly Microsoft.Net.Http.Headers.HeaderNames.XForwardedFor -> string!

0 commit comments

Comments
 (0)