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:
      RFC 8441: Bootstrapping WebSockets with HTTP/2
    • 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_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.
    • 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.
    • 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.
    • 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_DISPOSITION

      public static final AsciiString CONTENT_DISPOSITION
      The HTTP "Content-Disposition" header field name.
    • CONTENT_ENCODING

      public static final AsciiString CONTENT_ENCODING
      The HTTP "Content-Encoding" header field name.
    • 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.
    • 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.
    • 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_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_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.
    • 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.
  • Method Details