Package com.azure.core.http
Class HttpHeaderName
Represents HTTP header names for multiple versions of HTTP.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HttpHeaderName
Accept
/accept
static final HttpHeaderName
Accept-Charset
/accept-charset
static final HttpHeaderName
Accept-Datetime
/accept-datetime
static final HttpHeaderName
Accept-Encoding
/accept-encoding
static final HttpHeaderName
Accept-Language
/accept-language
static final HttpHeaderName
Accept-Patch
/accept-patch
static final HttpHeaderName
Accept-Ranges
/accept-ranges
static final HttpHeaderName
Access-Control-Allow-Credentials
/access-control-allow-credentials
static final HttpHeaderName
Access-Control-Allow-Headers
/access-control-allow-headers
static final HttpHeaderName
Access-Control-Allow-Methods
/access-control-allow-methods
static final HttpHeaderName
Access-Control-Allow-Origin
/access-control-allow-origin
static final HttpHeaderName
Access-Control-Expose-Headers
/access-control-expose-headers
static final HttpHeaderName
Access-Control-Max-Age
/access-control-max-age
static final HttpHeaderName
Age
/age
static final HttpHeaderName
Allow
/allow
static final HttpHeaderName
Authorization
/authorization
static final HttpHeaderName
Cache-Control
/cache-control
static final HttpHeaderName
Connection
/connection
static final HttpHeaderName
Content-Disposition
/content-disposition
static final HttpHeaderName
Content-Encoding
/content-encoding
static final HttpHeaderName
Content-Language
/content-language
static final HttpHeaderName
Content-Length
/content-length
static final HttpHeaderName
Content-Location
/content-location
static final HttpHeaderName
Content-MD5
/content-md5
static final HttpHeaderName
Content-Range
/content-range
static final HttpHeaderName
Content-Type
/content-type
static final HttpHeaderName
Cookie
/cookie
static final HttpHeaderName
Date
/date
static final HttpHeaderName
ETag
/etag
static final HttpHeaderName
Expect
/expect
static final HttpHeaderName
Expires
/expires
static final HttpHeaderName
Forwarded
/forwarded
static final HttpHeaderName
From
/from
static final HttpHeaderName
Host
/host
static final HttpHeaderName
HTTP2-Settings
/http2-settings
static final HttpHeaderName
If-Match
/if-match
static final HttpHeaderName
If-Modified-Since
/if-modified-since
static final HttpHeaderName
If-None-Match
/if-none-match
static final HttpHeaderName
If-Range
/if-range
static final HttpHeaderName
If-Unmodified-Since
/if-unmodified-since
static final HttpHeaderName
Last-Modified
/last-modified
static final HttpHeaderName
Link
/link
static final HttpHeaderName
Location
/location
static final HttpHeaderName
Max-Forwards
/max-forwards
static final HttpHeaderName
Origin
/origin
static final HttpHeaderName
Pragma
/pragma
static final HttpHeaderName
Prefer
/prefer
static final HttpHeaderName
Preference-Applied
/preference-applied
static final HttpHeaderName
Proxy-Authenticate
/proxy-authenticate
static final HttpHeaderName
Proxy-Authorization
/proxy-authorization
static final HttpHeaderName
Range
/range
static final HttpHeaderName
Referer
/referer
static final HttpHeaderName
Retry-After
/retry-after
static final HttpHeaderName
Server
/server
static final HttpHeaderName
Set-Cookie
/set-cookie
static final HttpHeaderName
Strict-Transport-Security
/strict-transport-security
static final HttpHeaderName
TE
/te
static final HttpHeaderName
Trailer
/trailer
static final HttpHeaderName
Transfer-Encoding
/transfer-encoding
static final HttpHeaderName
Upgrade
/upgrade
static final HttpHeaderName
User-Agent
/user-agent
static final HttpHeaderName
Vary
/vary
static final HttpHeaderName
Via
/via
static final HttpHeaderName
Warning
/warning
static final HttpHeaderName
WWW-Authenticate
/www-authenticate
static final HttpHeaderName
x-ms-client-request-id
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static HttpHeaderName
fromString
(String name) Gets or creates theHttpHeaderName
for the passedname
.Gets the HTTP header name lower cased.Gets the HTTP header name based on the name passed intofromString(String)
.int
hashCode()
Methods inherited from class com.azure.core.util.ExpandableStringEnum
fromString, toString, values
-
Field Details
-
ACCEPT
Accept
/accept
-
ACCEPT_CHARSET
Accept-Charset
/accept-charset
-
ACCESS_CONTROL_ALLOW_CREDENTIALS
Access-Control-Allow-Credentials
/access-control-allow-credentials
-
ACCESS_CONTROL_ALLOW_HEADERS
Access-Control-Allow-Headers
/access-control-allow-headers
-
ACCESS_CONTROL_ALLOW_METHODS
Access-Control-Allow-Methods
/access-control-allow-methods
-
ACCESS_CONTROL_ALLOW_ORIGIN
Access-Control-Allow-Origin
/access-control-allow-origin
-
ACCESS_CONTROL_EXPOSE_HEADERS
Access-Control-Expose-Headers
/access-control-expose-headers
-
ACCESS_CONTROL_MAX_AGE
Access-Control-Max-Age
/access-control-max-age
-
ACCEPT_DATETIME
Accept-Datetime
/accept-datetime
-
ACCEPT_ENCODING
Accept-Encoding
/accept-encoding
-
ACCEPT_LANGUAGE
Accept-Language
/accept-language
-
ACCEPT_PATCH
Accept-Patch
/accept-patch
-
ACCEPT_RANGES
Accept-Ranges
/accept-ranges
-
AGE
Age
/age
-
ALLOW
Allow
/allow
-
AUTHORIZATION
Authorization
/authorization
-
CACHE_CONTROL
Cache-Control
/cache-control
-
CONNECTION
Connection
/connection
-
CONTENT_DISPOSITION
Content-Disposition
/content-disposition
-
CONTENT_ENCODING
Content-Encoding
/content-encoding
-
CONTENT_LANGUAGE
Content-Language
/content-language
-
CONTENT_LENGTH
Content-Length
/content-length
-
CONTENT_LOCATION
Content-Location
/content-location
-
CONTENT_MD5
Content-MD5
/content-md5
-
CONTENT_RANGE
Content-Range
/content-range
-
CONTENT_TYPE
Content-Type
/content-type
-
COOKIE
Cookie
/cookie
-
DATE
Date
/date
-
ETAG
ETag
/etag
-
EXPECT
Expect
/expect
-
EXPIRES
Expires
/expires
-
FORWARDED
Forwarded
/forwarded
-
FROM
From
/from
-
HOST
Host
/host
-
HTTP2_SETTINGS
HTTP2-Settings
/http2-settings
-
IF_MATCH
If-Match
/if-match
-
IF_MODIFIED_SINCE
If-Modified-Since
/if-modified-since
-
IF_NONE_MATCH
If-None-Match
/if-none-match
-
IF_RANGE
If-Range
/if-range
-
IF_UNMODIFIED_SINCE
If-Unmodified-Since
/if-unmodified-since
-
LAST_MODIFIED
Last-Modified
/last-modified
-
LINK
Link
/link
-
LOCATION
Location
/location
-
MAX_FORWARDS
Max-Forwards
/max-forwards
-
ORIGIN
Origin
/origin
-
PRAGMA
Pragma
/pragma
-
PREFER
Prefer
/prefer
-
PREFERENCE_APPLIED
Preference-Applied
/preference-applied
-
PROXY_AUTHENTICATE
Proxy-Authenticate
/proxy-authenticate
-
PROXY_AUTHORIZATION
Proxy-Authorization
/proxy-authorization
-
RANGE
Range
/range
-
REFERER
Referer
/referer
-
RETRY_AFTER
Retry-After
/retry-after
-
SERVER
Server
/server
-
SET_COOKIE
Set-Cookie
/set-cookie
-
STRICT_TRANSPORT_SECURITY
Strict-Transport-Security
/strict-transport-security
-
TE
TE
/te
-
TRAILER
Trailer
/trailer
-
TRANSFER_ENCODING
Transfer-Encoding
/transfer-encoding
-
USER_AGENT
User-Agent
/user-agent
-
UPGRADE
Upgrade
/upgrade
-
VARY
Vary
/vary
-
VIA
Via
/via
-
WARNING
Warning
/warning
-
WWW_AUTHENTICATE
WWW-Authenticate
/www-authenticate
-
X_MS_CLIENT_REQUEST_ID
x-ms-client-request-id
-
-
Constructor Details
-
HttpHeaderName
Deprecated.Use one of the constants or thefromString(String)
factory method.Creates a new instance ofHttpHeaderName
without aExpandableStringEnum.toString()
value.This constructor shouldn't be called as it will produce a
HttpHeaderName
which doesn't have a String enum value.
-
-
Method Details
-
getCaseSensitiveName
Gets the HTTP header name based on the name passed intofromString(String)
.- Returns:
- The HTTP header name based on the construction of this
HttpHeaderName
.
-
getCaseInsensitiveName
Gets the HTTP header name lower cased.- Returns:
- The HTTP header name lower cased.
-
fromString
- Parameters:
name
- The name.- Returns:
- The HttpHeaderName of the passed name, or null if name was null.
-
hashCode
public int hashCode()- Overrides:
hashCode
in classExpandableStringEnum<HttpHeaderName>
-
equals
- Overrides:
equals
in classExpandableStringEnum<HttpHeaderName>
-
fromString(String)
factory method.