HttpHeaders

Ecng.Net

Contains constants for common HTTP header field names.

フィールド

AcceptEncoding
public const string AcceptEncoding
value = HttpHeaders.AcceptEncoding

Gets the header name for Accept-Encoding.

AcceptLanguage
public const string AcceptLanguage
value = HttpHeaders.AcceptLanguage

Gets the header name for Accept-Language.

Authorization
public const string Authorization
value = HttpHeaders.Authorization

Gets the header name for Authorization.

CacheControl
public const string CacheControl
value = HttpHeaders.CacheControl

Gets the header name for Cache-Control.

CFConnectingIP
public const string CFConnectingIP
value = HttpHeaders.CFConnectingIP

Gets the header name for CF-Connecting-IP (Cloudflare).

ClientIpHeaders
public static readonly string[] ClientIpHeaders
value = HttpHeaders.ClientIpHeaders

Gets the list of headers used to determine the real client IP address behind proxies.

Connection
public const string Connection
value = HttpHeaders.Connection

Gets the header name for Connection.

Forwarded
public const string Forwarded
value = HttpHeaders.Forwarded

Gets the header name for Forwarded (RFC 7239).

KeepAlive
public const string KeepAlive
value = HttpHeaders.KeepAlive

Gets the header name for Keep-Alive.

LastModified
public const string LastModified
value = HttpHeaders.LastModified

Gets the header name for Last-Modified.

ProxyAuthenticate
public const string ProxyAuthenticate
value = HttpHeaders.ProxyAuthenticate

Gets the header name for Proxy-Authenticate.

ProxyAuthorization
public const string ProxyAuthorization
value = HttpHeaders.ProxyAuthorization

Gets the header name for Proxy-Authorization.

ProxyConnection
public const string ProxyConnection
value = HttpHeaders.ProxyConnection

Gets the header name for Proxy-Connection.

Referer
public const string Referer
value = HttpHeaders.Referer

Gets the header name for Referer.

TrueClientIP
public const string TrueClientIP
value = HttpHeaders.TrueClientIP

Gets the header name for True-Client-IP (Cloudflare/Akamai).

UserAgent
public const string UserAgent
value = HttpHeaders.UserAgent

Gets the header name for User-Agent.

WWWAuthenticate
public const string WWWAuthenticate
value = HttpHeaders.WWWAuthenticate

Gets the header name for WWW-Authenticate.

XForwardedFor
public const string XForwardedFor
value = HttpHeaders.XForwardedFor

Gets the header name for X-Forwarded-For (standard proxy header).

XRealIP
public const string XRealIP
value = HttpHeaders.XRealIP

Gets the header name for X-Real-IP (nginx).