Class HttpHeaderNames

java.lang.Object
com.linecorp.armeria.common.HttpHeaderNames

public final class HttpHeaderNames extends Object
Contains constant definitions for the HTTP header field names.

All header names in this class are defined in lowercase to support HTTP/2 requirements while also not violating HTTP/1 requirements.

  • Field Details

    • METHOD

      public static final AsciiString METHOD
      The HTTP ":method" pseudo header field name.
    • SCHEME

      public static final AsciiString SCHEME
      The HTTP ":scheme" pseudo header field name.
    • AUTHORITY

      public static final AsciiString AUTHORITY
      The HTTP ":authority" pseudo header field name.
    • PATH

      public static final AsciiString PATH
      The HTTP ":path" pseudo header field name.
    • STATUS

      public static final AsciiString STATUS
      The HTTP ":status" pseudo header field name.
    • PROTOCOL

      public static final AsciiString PROTOCOL
      The HTTP ":protocol" pseudo header field name.
      See Also:
    • CACHE_CONTROL

      public static final AsciiString CACHE_CONTROL
      The HTTP "Cache-Control" header field name.
    • CONTENT_LENGTH

      public static final AsciiString CONTENT_LENGTH
      The HTTP "Content-Length" header field name.
    • CONTENT_TYPE

      public static final AsciiString CONTENT_TYPE
      The HTTP "Content-Type" header field name.
    • DATE

      public static final AsciiString DATE
      The HTTP "Date" header field name.
    • PRAGMA

      public static final AsciiString PRAGMA
      The HTTP "Pragma" header field name.
    • VIA

      public static final AsciiString VIA
      The HTTP "Via" header field name.
    • WARNING

      public static final AsciiString WARNING
      The HTTP "Warning" header field name.
    • ACCEPT

      public static final AsciiString ACCEPT
      The HTTP "Accept" header field name.
    • ACCEPT_CHARSET

      public static final AsciiString ACCEPT_CHARSET
      The HTTP "Accept-Charset" header field name.
    • ACCEPT_ENCODING

      public static final AsciiString ACCEPT_ENCODING
      The HTTP "Accept-Encoding" header field name.
    • ACCEPT_LANGUAGE

      public static final AsciiString ACCEPT_LANGUAGE
      The HTTP "Accept-Language" header field name.
    • ACCESS_CONTROL_ALLOW_PRIVATE_NETWORK

      public static final AsciiString ACCESS_CONTROL_ALLOW_PRIVATE_NETWORK
      The HTTP Access-Control-Allow-Private-Network header field name.
    • ACCESS_CONTROL_REQUEST_HEADERS

      public static final AsciiString ACCESS_CONTROL_REQUEST_HEADERS
      The HTTP "Access-Control-Request-Headers" header field name.
    • ACCESS_CONTROL_REQUEST_METHOD

      public static final AsciiString ACCESS_CONTROL_REQUEST_METHOD
      The HTTP "Access-Control-Request-Method" header field name.
    • AUTHORIZATION

      public static final AsciiString AUTHORIZATION
      The HTTP "Authorization" header field name.
    • CONNECTION

      public static final AsciiString CONNECTION
      The HTTP "Connection" header field name.
    • CROSS_ORIGIN_RESOURCE_POLICY

      public static final AsciiString CROSS_ORIGIN_RESOURCE_POLICY
      The HTTP Cross-Origin-Resource-Policy header field name.
    • EARLY_DATA

      public static final AsciiString EARLY_DATA
      The HTTP "Early-Data" header field name.
    • EXPECT

      public static final AsciiString EXPECT
      The HTTP "Expect" header field name.
    • FROM

      public static final AsciiString FROM
      The HTTP "From" header field name.
    • FORWARDED

      public static final AsciiString FORWARDED
      The HTTP "Forwarded" header field name.
    • FOLLOW_ONLY_WHEN_PRERENDER_SHOWN

      public static final AsciiString FOLLOW_ONLY_WHEN_PRERENDER_SHOWN
      The HTTP "Follow-Only-When-Prerender-Shown" header field name.
    • HOST

      public static final AsciiString HOST
      The HTTP "Host" header field name.
    • HTTP2_SETTINGS

      public static final AsciiString HTTP2_SETTINGS
      The HTTP "HTTP2-Settings" header field name.
    • IF_MATCH

      public static final AsciiString IF_MATCH
      The HTTP "If-Match" header field name.
    • IF_MODIFIED_SINCE

      public static final AsciiString IF_MODIFIED_SINCE
      The HTTP "If-Modified-Since" header field name.
    • IF_NONE_MATCH

      public static final AsciiString IF_NONE_MATCH
      The HTTP "If-None-Match" header field name.
    • IF_RANGE

      public static final AsciiString IF_RANGE
      The HTTP "If-Range" header field name.
    • IF_UNMODIFIED_SINCE

      public static final AsciiString IF_UNMODIFIED_SINCE
      The HTTP "If-Unmodified-Since" header field name.
    • LAST_EVENT_ID

      public static final AsciiString LAST_EVENT_ID
      The HTTP "Last-Event-ID" header field name.
    • MAX_FORWARDS

      public static final AsciiString MAX_FORWARDS
      The HTTP "Max-Forwards" header field name.
    • ORIGIN

      public static final AsciiString ORIGIN
      The HTTP "Origin" header field name.
    • ORIGIN_ISOLATION

      public static final AsciiString ORIGIN_ISOLATION
      The HTTP Origin-Isolation header field name.
    • PREFER

      public static final AsciiString PREFER
      The HTTP "Prefer" header field name.
    • PROXY_AUTHORIZATION

      public static final AsciiString PROXY_AUTHORIZATION
      The HTTP "Proxy-Authorization" header field name.
    • RANGE

      public static final AsciiString RANGE
      The HTTP "Range" header field name.
    • REFERER

      public static final AsciiString REFERER
      The HTTP "Referer" header field name.
    • REFERRER_POLICY

      public static final AsciiString REFERRER_POLICY
      The HTTP "Referrer-Policy" header field name.
    • SERVICE_WORKER

      public static final AsciiString SERVICE_WORKER
      The HTTP Service-Worker header field name.
    • TE

      public static final AsciiString TE
      The HTTP "TE" header field name.
    • UPGRADE

      public static final AsciiString UPGRADE
      The HTTP "Upgrade" header field name.
    • UPGRADE_INSECURE_REQUESTS

      public static final AsciiString UPGRADE_INSECURE_REQUESTS
      The HTTP Upgrade-Insecure-Requests header field name.
    • USER_AGENT

      public static final AsciiString USER_AGENT
      The HTTP "User-Agent" header field name.
    • ACCEPT_RANGES

      public static final AsciiString ACCEPT_RANGES
      The HTTP "Accept-Ranges" header field name.
    • ACCEPT_PATCH

      public static final AsciiString ACCEPT_PATCH
      The HTTP "Accept-Patch" header field name.
    • ACCESS_CONTROL_ALLOW_HEADERS

      public static final AsciiString ACCESS_CONTROL_ALLOW_HEADERS
      The HTTP "Access-Control-Allow-Headers" header field name.
    • ACCESS_CONTROL_ALLOW_METHODS

      public static final AsciiString ACCESS_CONTROL_ALLOW_METHODS
      The HTTP "Access-Control-Allow-Methods" header field name.
    • ACCESS_CONTROL_ALLOW_ORIGIN

      public static final AsciiString ACCESS_CONTROL_ALLOW_ORIGIN
      The HTTP "Access-Control-Allow-Origin" header field name.
    • ACCESS_CONTROL_ALLOW_CREDENTIALS

      public static final AsciiString ACCESS_CONTROL_ALLOW_CREDENTIALS
      The HTTP "Access-Control-Allow-Credentials" header field name.
    • ACCESS_CONTROL_EXPOSE_HEADERS

      public static final AsciiString ACCESS_CONTROL_EXPOSE_HEADERS
      The HTTP "Access-Control-Expose-Headers" header field name.
    • ACCESS_CONTROL_MAX_AGE

      public static final AsciiString ACCESS_CONTROL_MAX_AGE
      The HTTP "Access-Control-Max-Age" header field name.
    • AGE

      public static final AsciiString AGE
      The HTTP "Age" header field name.
    • ALLOW

      public static final AsciiString ALLOW
      The HTTP "Allow" header field name.
    • CONTENT_BASE

      public static final AsciiString CONTENT_BASE
      The HTTP "Content-Base" header field name.
    • CONTENT_DESCRIPTION

      public static final AsciiString CONTENT_DESCRIPTION
      The HTTP/MIME "Content-Description" header field name. As described in RFC 1521: MIME Part One: Optional Content-Description Header Field
    • CONTENT_DISPOSITION

      public static final AsciiString CONTENT_DISPOSITION
    • CONTENT_ENCODING

      public static final AsciiString CONTENT_ENCODING
      The HTTP "Content-Encoding" header field name.
    • CONTENT_ID

      public static final AsciiString CONTENT_ID
      The HTTP/MIME "Content-ID" header field name. As described in RFC 1521: MIME Part One: Optional Content-ID Header Field
    • CONTENT_LANGUAGE

      public static final AsciiString CONTENT_LANGUAGE
      The HTTP "Content-Language" header field name.
    • CONTENT_LOCATION

      public static final AsciiString CONTENT_LOCATION
      The HTTP "Content-Location" header field name.
    • CONTENT_MD5

      public static final AsciiString CONTENT_MD5
      The HTTP "Content-MD5" header field name.
    • CONTENT_RANGE

      public static final AsciiString CONTENT_RANGE
      The HTTP "Content-Range" header field name.
    • CONTENT_SECURITY_POLICY

      public static final AsciiString CONTENT_SECURITY_POLICY
      The HTTP Content-Security-Policy header field name.
    • CONTENT_SECURITY_POLICY_REPORT_ONLY

      public static final AsciiString CONTENT_SECURITY_POLICY_REPORT_ONLY
      The HTTP "Content-Security-Policy-Report-Only" header field name.
    • CONTENT_TRANSFER_ENCODING

      public static final AsciiString CONTENT_TRANSFER_ENCODING
      The HTTP/MIME "Content-Transfer-Encoding" header field name. As described in RFC 1521: MIME Part One: The Content-Transfer-Encoding Header Field
    • CROSS_ORIGIN_EMBEDDER_POLICY

      public static final AsciiString CROSS_ORIGIN_EMBEDDER_POLICY
      The HTTP Cross-Origin-Embedder-Policy header field name.
    • CROSS_ORIGIN_EMBEDDER_POLICY_REPORT_ONLY

      public static final AsciiString CROSS_ORIGIN_EMBEDDER_POLICY_REPORT_ONLY
    • CROSS_ORIGIN_OPENER_POLICY

      public static final AsciiString CROSS_ORIGIN_OPENER_POLICY
      The HTTP Cross-Origin-Opener-Policy header field name.
    • ETAG

      public static final AsciiString ETAG
      The HTTP "ETag" header field name.
    • EXPIRES

      public static final AsciiString EXPIRES
      The HTTP "Expires" header field name.
    • LAST_MODIFIED

      public static final AsciiString LAST_MODIFIED
      The HTTP "Last-Modified" header field name.
    • LOCATION

      public static final AsciiString LOCATION
      The HTTP "Location" header field name.
    • KEEP_ALIVE

      public static final AsciiString KEEP_ALIVE
      The HTTP Keep-Alive header field name.
    • ORIGIN_TRIAL

      public static final AsciiString ORIGIN_TRIAL
      The HTTP "Origin-Trial" header field name.
    • P3P

      public static final AsciiString P3P
      The HTTP "P3P" header field name. Limited browser support.
    • PROXY_AUTHENTICATE

      public static final AsciiString PROXY_AUTHENTICATE
      The HTTP "Proxy-Authenticate" header field name.
    • REFRESH

      public static final AsciiString REFRESH
      The HTTP "Refresh" header field name. Non-standard header supported by most browsers.
    • REPORT_TO

      public static final AsciiString REPORT_TO
      The HTTP "Report-To" header field name.
    • RETRY_AFTER

      public static final AsciiString RETRY_AFTER
      The HTTP "Retry-After" header field name.
    • SERVER

      public static final AsciiString SERVER
      The HTTP "Server" header field name.
    • SERVER_TIMING

      public static final AsciiString SERVER_TIMING
      The HTTP "Server-Timing" header field name.
    • SERVICE_WORKER_ALLOWED

      public static final AsciiString SERVICE_WORKER_ALLOWED
      The HTTP Service-Worker-Allowed header field name.
    • SET_COOKIE2

      public static final AsciiString SET_COOKIE2
      The HTTP "Set-Cookie2" header field name.
    • SOURCE_MAP

      public static final AsciiString SOURCE_MAP
      The HTTP "SourceMap" header field name.
    • STRICT_TRANSPORT_SECURITY

      public static final AsciiString STRICT_TRANSPORT_SECURITY
      The HTTP Strict-Transport-Security header field name.
    • TIMING_ALLOW_ORIGIN

      public static final AsciiString TIMING_ALLOW_ORIGIN
      The HTTP Timing-Allow-Origin header field name.
    • TRAILER

      public static final AsciiString TRAILER
      The HTTP "Trailer" header field name.
    • TRANSFER_ENCODING

      public static final AsciiString TRANSFER_ENCODING
      The HTTP "Transfer-Encoding" header field name.
    • VARY

      public static final AsciiString VARY
      The HTTP "Vary" header field name.
    • WWW_AUTHENTICATE

      public static final AsciiString WWW_AUTHENTICATE
      The HTTP "WWW-Authenticate" header field name.
    • DNT

      public static final AsciiString DNT
      The HTTP "DNT" header field name.
    • X_CONTENT_TYPE_OPTIONS

      public static final AsciiString X_CONTENT_TYPE_OPTIONS
      The HTTP "X-Content-Type-Options" header field name.
    • X_DEVICE_IP

      public static final AsciiString X_DEVICE_IP
      The HTTP X-Device-IP header field name. Header used for VAST requests to provide the IP address of the device on whose behalf the request is being made.
    • X_DEVICE_REFERER

      public static final AsciiString X_DEVICE_REFERER
      The HTTP X-Device-Referer header field name. Header used for VAST requests to provide the REFERER header value that the on-behalf-of client would have used when making a request itself.
    • X_DEVICE_ACCEPT_LANGUAGE

      public static final AsciiString X_DEVICE_ACCEPT_LANGUAGE
      The HTTP X-Device-Accept-Language header field name. Header used for VAST requests to provide the ACCEPT_LANGUAGE header value that the on-behalf-of client would have used when making a request itself.
    • X_DEVICE_REQUESTED_WITH

      public static final AsciiString X_DEVICE_REQUESTED_WITH
      The HTTP X-Device-Requested-With header field name. Header used for VAST requests to provide the X_REQUESTED_WITH header value that the on-behalf-of client would have used when making a request itself.
    • X_DO_NOT_TRACK

      public static final AsciiString X_DO_NOT_TRACK
      The HTTP "X-Do-Not-Track" header field name.
    • X_FORWARDED_FOR

      public static final AsciiString X_FORWARDED_FOR
      The HTTP "X-Forwarded-For" header field name (superseded by "Forwarded").
    • X_FORWARDED_PROTO

      public static final AsciiString X_FORWARDED_PROTO
      The HTTP "X-Forwarded-Proto" header field name.
    • X_FORWARDED_HOST

      public static final AsciiString X_FORWARDED_HOST
      The HTTP "X-Forwarded-Host" header field name.
    • X_FORWARDED_PORT

      public static final AsciiString X_FORWARDED_PORT
      The HTTP "X-Forwarded-Port" header field name.
    • X_FRAME_OPTIONS

      public static final AsciiString X_FRAME_OPTIONS
      The HTTP "X-Frame-Options" header field name.
    • X_POWERED_BY

      public static final AsciiString X_POWERED_BY
      The HTTP "X-Powered-By" header field name.
    • PUBLIC_KEY_PINS

      public static final AsciiString PUBLIC_KEY_PINS
      The HTTP Public-Key-Pins header field name.
    • PUBLIC_KEY_PINS_REPORT_ONLY

      public static final AsciiString PUBLIC_KEY_PINS_REPORT_ONLY
      The HTTP Public-Key-Pins-Report-Only header field name.
    • X_REQUEST_ID

      public static final AsciiString X_REQUEST_ID
      The HTTP X-Request-ID header field name.
    • X_REQUESTED_WITH

      public static final AsciiString X_REQUESTED_WITH
      The HTTP "X-Requested-With" header field name.
    • X_USER_IP

      public static final AsciiString X_USER_IP
      The HTTP "X-User-IP" header field name.
    • X_DOWNLOAD_OPTIONS

      public static final AsciiString X_DOWNLOAD_OPTIONS
      The HTTP "X-Download-Options" header field name.

      When the new X-Download-Options header is present with the value "noopen", the user is prevented from opening a file download directly; instead, they must first save the file locally.

    • X_XSS_PROTECTION

      public static final AsciiString X_XSS_PROTECTION
      The HTTP "X-XSS-Protection" header field name.
    • X_DNS_PREFETCH_CONTROL

      public static final AsciiString X_DNS_PREFETCH_CONTROL
      The HTTP X-DNS-Prefetch-Control header controls DNS prefetch behavior. Value can be "on" or "off". By default, DNS prefetching is "on" for HTTP pages and "off" for HTTPS pages.
    • PING_FROM

      public static final AsciiString PING_FROM
      The HTTP "Ping-From" header field name.
    • PING_TO

      public static final AsciiString PING_TO
      The HTTP "Ping-To" header field name.
    • PURPOSE

      public static final AsciiString PURPOSE
      The HTTP Purpose header field name.
    • X_PURPOSE

      public static final AsciiString X_PURPOSE
      The HTTP X-Purpose header field name.
    • X_MOZ

      public static final AsciiString X_MOZ
      The HTTP X-Moz header field name.
    • DEVICE_MEMORY

      public static final AsciiString DEVICE_MEMORY
      The HTTP Device-Memory header field name.
    • ECT

      public static final AsciiString ECT
      The HTTP ECT header field name.
    • RTT

      public static final AsciiString RTT
      The HTTP RTT header field name.
    • SAVE_DATA

      public static final AsciiString SAVE_DATA
      The HTTP Save-Data header field name.
    • VIEWPORT_WIDTH

      public static final AsciiString VIEWPORT_WIDTH
      The HTTP Viewport-Width header field name.
    • WIDTH

      public static final AsciiString WIDTH
      The HTTP Width header field name.
    • PERMISSIONS_POLICY

      public static final AsciiString PERMISSIONS_POLICY
      The HTTP Permissions-Policy header field name.
    • ACCEPT_CH

      public static final AsciiString ACCEPT_CH
      The HTTP Accept-CH header field name.
    • CRITICAL_CH

      public static final AsciiString CRITICAL_CH
      The HTTP Critical-CH header field name.
    • SEC_CH_UA

      public static final AsciiString SEC_CH_UA
      The HTTP Sec-CH-UA header field name.
    • SEC_CH_UA_ARCH

      public static final AsciiString SEC_CH_UA_ARCH
      The HTTP Sec-CH-UA-Arch header field name.
    • SEC_CH_UA_MODEL

      public static final AsciiString SEC_CH_UA_MODEL
      The HTTP Sec-CH-UA-Model header field name.
    • SEC_CH_UA_PLATFORM

      public static final AsciiString SEC_CH_UA_PLATFORM
      The HTTP Sec-CH-UA-Platform header field name.
    • SEC_CH_UA_PLATFORM_VERSION

      public static final AsciiString SEC_CH_UA_PLATFORM_VERSION
      The HTTP Sec-CH-UA-Platform-Version header field name.
    • SEC_CH_UA_FULL_VERSION

      public static final AsciiString SEC_CH_UA_FULL_VERSION
      The HTTP Sec-CH-UA-Full-Version header field name.
    • SEC_CH_UA_FULL_VERSION_LIST

      public static final AsciiString SEC_CH_UA_FULL_VERSION_LIST
      The HTTP Sec-CH-UA-Full-Version header field name.
    • SEC_CH_UA_MOBILE

      public static final AsciiString SEC_CH_UA_MOBILE
      The HTTP Sec-CH-UA-Mobile header field name.
    • SEC_CH_UA_BITNESS

      public static final AsciiString SEC_CH_UA_BITNESS
      The HTTP Sec-CH-UA-Bitness header field name.
    • SEC_FETCH_DEST

      public static final AsciiString SEC_FETCH_DEST
      The HTTP Sec-Fetch-Dest header field name.
    • SEC_FETCH_MODE

      public static final AsciiString SEC_FETCH_MODE
      The HTTP Sec-Fetch-Mode header field name.
    • SEC_FETCH_SITE

      public static final AsciiString SEC_FETCH_SITE
      The HTTP Sec-Fetch-Site header field name.
    • SEC_FETCH_USER

      public static final AsciiString SEC_FETCH_USER
      The HTTP Sec-Fetch-User header field name.
    • SEC_METADATA

      public static final AsciiString SEC_METADATA
      The HTTP Sec-Metadata header field name.
    • SEC_TOKEN_BINDING

      public static final AsciiString SEC_TOKEN_BINDING
      The HTTP Sec-Token-Binding header field name.
    • SEC_PROVIDED_TOKEN_BINDING_ID

      public static final AsciiString SEC_PROVIDED_TOKEN_BINDING_ID
      The HTTP Sec-Provided-Token-Binding-ID header field name.
    • SEC_REFERRED_TOKEN_BINDING_ID

      public static final AsciiString SEC_REFERRED_TOKEN_BINDING_ID
      The HTTP Sec-Referred-Token-Binding-ID header field name.
    • SEC_WEBSOCKET_ACCEPT

      public static final AsciiString SEC_WEBSOCKET_ACCEPT
      The HTTP Sec-WebSocket-Accept header field name.
    • SEC_WEBSOCKET_EXTENSIONS

      public static final AsciiString SEC_WEBSOCKET_EXTENSIONS
      The HTTP Sec-WebSocket-Extensions header field name.
    • SEC_WEBSOCKET_KEY

      public static final AsciiString SEC_WEBSOCKET_KEY
      The HTTP Sec-WebSocket-Key header field name.
    • SEC_WEBSOCKET_PROTOCOL

      public static final AsciiString SEC_WEBSOCKET_PROTOCOL
      The HTTP Sec-WebSocket-Protocol header field name.
    • SEC_WEBSOCKET_VERSION

      public static final AsciiString SEC_WEBSOCKET_VERSION
      The HTTP Sec-WebSocket-Version header field name.
    • CDN_LOOP

      public static final AsciiString CDN_LOOP
      The HTTP CDN-Loop header field name.
  • Method Details