Class HttpHeaders

java.lang.Object
io.vertx.rxjava3.core.http.HttpHeaders
All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate

public class HttpHeaders extends Object implements io.vertx.lang.rx.RxDelegate
Contains a bunch of useful HTTP headers stuff:
  • methods for creating instances
  • often used Header names
  • method to create optimized CharSequence which can be used as header name and value

NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.

  • Field Details

    • __TYPE_ARG

      public static final io.vertx.lang.rx.TypeArg<HttpHeaders> __TYPE_ARG
    • ACCEPT

      public static final CharSequence ACCEPT
      Accept header name
    • ACCEPT_CHARSET

      public static final CharSequence ACCEPT_CHARSET
      Accept-Charset header name
    • ACCEPT_ENCODING

      public static final CharSequence ACCEPT_ENCODING
      Accept-Encoding header name
    • ACCEPT_LANGUAGE

      public static final CharSequence ACCEPT_LANGUAGE
      Accept-Language header name
    • ACCEPT_RANGES

      public static final CharSequence ACCEPT_RANGES
      Accept-Ranges header name
    • ACCEPT_PATCH

      public static final CharSequence ACCEPT_PATCH
      Accept-Patch header name
    • ACCESS_CONTROL_ALLOW_CREDENTIALS

      public static final CharSequence ACCESS_CONTROL_ALLOW_CREDENTIALS
      Access-Control-Allow-Credentials header name
    • ACCESS_CONTROL_ALLOW_HEADERS

      public static final CharSequence ACCESS_CONTROL_ALLOW_HEADERS
      Access-Control-Allow-Headers header name
    • ACCESS_CONTROL_ALLOW_METHODS

      public static final CharSequence ACCESS_CONTROL_ALLOW_METHODS
      Access-Control-Allow-Methods header name
    • ACCESS_CONTROL_ALLOW_ORIGIN

      public static final CharSequence ACCESS_CONTROL_ALLOW_ORIGIN
      Access-Control-Allow-Origin header name
    • ACCESS_CONTROL_ALLOW_PRIVATE_NETWORK

      public static final CharSequence ACCESS_CONTROL_ALLOW_PRIVATE_NETWORK
      Access-Control-Allow-Private-Network header name
    • ACCESS_CONTROL_EXPOSE_HEADERS

      public static final CharSequence ACCESS_CONTROL_EXPOSE_HEADERS
      Access-Control-Expose-Headers header name
    • ACCESS_CONTROL_MAX_AGE

      public static final CharSequence ACCESS_CONTROL_MAX_AGE
      Access-Control-Max-Age header name
    • ACCESS_CONTROL_REQUEST_HEADERS

      public static final CharSequence ACCESS_CONTROL_REQUEST_HEADERS
      Access-Control-Request-Headers header name
    • ACCESS_CONTROL_REQUEST_METHOD

      public static final CharSequence ACCESS_CONTROL_REQUEST_METHOD
      Access-Control-Request-Method header name
    • ACCESS_CONTROL_REQUEST_PRIVATE_NETWORK

      public static final CharSequence ACCESS_CONTROL_REQUEST_PRIVATE_NETWORK
      Access-Control-Request-Private-Network header name
    • AGE

      public static final CharSequence AGE
      Age header name
    • ALLOW

      public static final CharSequence ALLOW
      Allow header name
    • AUTHORIZATION

      public static final CharSequence AUTHORIZATION
      Authorization header name
    • CACHE_CONTROL

      public static final CharSequence CACHE_CONTROL
      Cache-Control header name
    • CONNECTION

      public static final CharSequence CONNECTION
      Connection header name
    • CONTENT_BASE

      public static final CharSequence CONTENT_BASE
      Content-Base header name
    • CONTENT_DISPOSITION

      public static final CharSequence CONTENT_DISPOSITION
      Content-Disposition header name
    • CONTENT_ENCODING

      public static final CharSequence CONTENT_ENCODING
      Content-Encoding header name
    • CONTENT_LANGUAGE

      public static final CharSequence CONTENT_LANGUAGE
      Content-Language header name
    • CONTENT_LENGTH

      public static final CharSequence CONTENT_LENGTH
      Content-Length header name
    • CONTENT_LOCATION

      public static final CharSequence CONTENT_LOCATION
      Content-Location header name
    • CONTENT_TRANSFER_ENCODING

      public static final CharSequence CONTENT_TRANSFER_ENCODING
      Content-Transfer-Encoding header name
    • CONTENT_MD5

      public static final CharSequence CONTENT_MD5
      Content-MD5 header name
    • CONTENT_RANGE

      public static final CharSequence CONTENT_RANGE
      Content-Rage header name
    • CONTENT_TYPE

      public static final CharSequence CONTENT_TYPE
      Content-Type header name
    • DATE

      public static final CharSequence DATE
      Date header name
    • ETAG

      public static final CharSequence ETAG
      Etag header name
    • EXPECT

      public static final CharSequence EXPECT
      Expect header name
    • EXPIRES

      public static final CharSequence EXPIRES
      Expires header name
    • FROM

      public static final CharSequence FROM
      From header name
    • HOST

      public static final CharSequence HOST
      Host header name
    • IF_MATCH

      public static final CharSequence IF_MATCH
      If-Match header name
    • IF_MODIFIED_SINCE

      public static final CharSequence IF_MODIFIED_SINCE
      If-Modified-Since header name
    • IF_NONE_MATCH

      public static final CharSequence IF_NONE_MATCH
      If-None-Match header name
    • LAST_MODIFIED

      public static final CharSequence LAST_MODIFIED
      Last-Modified header name
    • LOCATION

      public static final CharSequence LOCATION
      Location header name
    • ORIGIN

      public static final CharSequence ORIGIN
      Origin header name
    • PROXY_AUTHENTICATE

      public static final CharSequence PROXY_AUTHENTICATE
      Proxy-Authenticate header name
    • PROXY_AUTHORIZATION

      public static final CharSequence PROXY_AUTHORIZATION
      Proxy-Authorization header name
    • REFERER

      public static final CharSequence REFERER
      Referer header name
    • RETRY_AFTER

      public static final CharSequence RETRY_AFTER
      Retry-After header name
    • SERVER

      public static final CharSequence SERVER
      Server header name
    • TRANSFER_ENCODING

      public static final CharSequence TRANSFER_ENCODING
      Transfer-Encoding header name
    • USER_AGENT

      public static final CharSequence USER_AGENT
      User-Agent header name
    • APPLICATION_X_WWW_FORM_URLENCODED

      public static final CharSequence APPLICATION_X_WWW_FORM_URLENCODED
      application/x-www-form-urlencoded header value
    • APPLICATION_OCTET_STREAM

      public static final CharSequence APPLICATION_OCTET_STREAM
      application/application/octet-stream header value
    • MULTIPART_FORM_DATA

      public static final CharSequence MULTIPART_FORM_DATA
      multipart/form-data header value
    • CHUNKED

      public static final CharSequence CHUNKED
      chunked header value
    • CLOSE

      public static final CharSequence CLOSE
      close header value
    • CONTINUE

      public static final CharSequence CONTINUE
      100-continue header value
    • IDENTITY

      public static final CharSequence IDENTITY
      identity header value
    • KEEP_ALIVE

      public static final CharSequence KEEP_ALIVE
      keep-alive header value
    • UPGRADE

      public static final CharSequence UPGRADE
      Upgrade header value
    • WEBSOCKET

      public static final CharSequence WEBSOCKET
      WebSocket header value
    • DEFLATE_GZIP

      public static final CharSequence DEFLATE_GZIP
      deflate,gzip header value
    • DEFLATE_GZIP_BR

      public static final CharSequence DEFLATE_GZIP_BR
      deflate,gzip,br header value
    • DEFLATE_GZIP_ZSTD_BR_SNAPPY

      public static final CharSequence DEFLATE_GZIP_ZSTD_BR_SNAPPY
      deflate,gzip,zstd,br header value
    • DEFLATE_GZIP_ZSTD

      public static final CharSequence DEFLATE_GZIP_ZSTD
      deflate,gzip,zstd header value
    • TEXT_HTML

      public static final CharSequence TEXT_HTML
      text/html header value
    • GET

      public static final CharSequence GET
      GET header value
    • VARY

      public static final CharSequence VARY
      Vary header name
    • ALT_SVC

      public static final CharSequence ALT_SVC
      Alt-svc header name
    • ALT_USED

      public static final CharSequence ALT_USED
      Alt-used header name
    • PSEUDO_PATH

      public static final CharSequence PSEUDO_PATH
      HTTP/2 :path pseudo header
    • PSEUDO_AUTHORITY

      public static final CharSequence PSEUDO_AUTHORITY
      HTTP/2 :authority pseudo header
    • PSEUDO_SCHEME

      public static final CharSequence PSEUDO_SCHEME
      HTTP/2 :scheme pseudo header
    • PSEUDO_STATUS

      public static final CharSequence PSEUDO_STATUS
      HTTP/2 :status pseudo header
    • PSEUDO_METHOD

      public static final CharSequence PSEUDO_METHOD
      HTTP/2 :method pseudo hedaer
  • Constructor Details

    • HttpHeaders

      public HttpHeaders(HttpHeaders delegate)
    • HttpHeaders

      public HttpHeaders(Object delegate)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getDelegate

      public HttpHeaders getDelegate()
      Specified by:
      getDelegate in interface io.vertx.lang.rx.RxDelegate
    • headers

      public static MultiMap headers()
      Returns:
      a backing an HTTP headers structure optimized for HTTP/1.x
    • headers

      public static MultiMap headers(HttpVersion version)
      Parameters:
      version - version HTTP protocol hint for which the returned instance is optimized for
      Returns:
      a backing an HTTP headers structure optimized for the version hint
    • set

      public static MultiMap set(String name, String value)
    • createOptimized

      public static CharSequence createOptimized(String value)
      Create an optimized CharSequence which can be used as header name or value. This should be used if you expect to use it multiple times liked for example adding the same header name or value for multiple responses or requests.
      Parameters:
      value -
      Returns:
    • set

      public static MultiMap set(CharSequence name, CharSequence value)
    • newInstance

      public static HttpHeaders newInstance(HttpHeaders arg)