vertx / io.vertx.core.http / HttpHeaders

HttpHeaders

class HttpHeaders

Contains often used Header names.

It also contains a utility method to create optimized CharSequence which can be used as header name and value.

Author
Norman Maurer

Properties

ACCEPT

static val ACCEPT: CharSequence

Accept header name

ACCEPT_CHARSET

static val ACCEPT_CHARSET: CharSequence

Accept-Charset header name

ACCEPT_ENCODING

static val ACCEPT_ENCODING: CharSequence

Accept-Encoding header name

ACCEPT_LANGUAGE

static val ACCEPT_LANGUAGE: CharSequence

Accept-Language header name

ACCEPT_PATCH

static val ACCEPT_PATCH: CharSequence

Accept-Patch header name

ACCEPT_RANGES

static val ACCEPT_RANGES: CharSequence

Accept-Ranges header name

ACCESS_CONTROL_ALLOW_CREDENTIALS

static val ACCESS_CONTROL_ALLOW_CREDENTIALS: CharSequence

Access-Control-Allow-Credentials header name

ACCESS_CONTROL_ALLOW_HEADERS

static val ACCESS_CONTROL_ALLOW_HEADERS: CharSequence

Access-Control-Allow-Headers header name

ACCESS_CONTROL_ALLOW_METHODS

static val ACCESS_CONTROL_ALLOW_METHODS: CharSequence

Access-Control-Allow-Methods header name

ACCESS_CONTROL_ALLOW_ORIGIN

static val ACCESS_CONTROL_ALLOW_ORIGIN: CharSequence

Access-Control-Allow-Origin header name

ACCESS_CONTROL_EXPOSE_HEADERS

static val ACCESS_CONTROL_EXPOSE_HEADERS: CharSequence

Access-Control-Expose-Headers header name

ACCESS_CONTROL_MAX_AGE

static val ACCESS_CONTROL_MAX_AGE: CharSequence

Access-Control-Max-Age header name

ACCESS_CONTROL_REQUEST_HEADERS

static val ACCESS_CONTROL_REQUEST_HEADERS: CharSequence

Access-Control-Request-Headers header name

ACCESS_CONTROL_REQUEST_METHOD

static val ACCESS_CONTROL_REQUEST_METHOD: CharSequence

Access-Control-Request-Method header name

AGE

static val AGE: CharSequence

Age header name

ALLOW

static val ALLOW: CharSequence

Allow header name

APPLICATION_X_WWW_FORM_URLENCODED

static val APPLICATION_X_WWW_FORM_URLENCODED: CharSequence

application/x-www-form-urlencoded header value

AUTHORIZATION

static val AUTHORIZATION: CharSequence

Authorization header name

CACHE_CONTROL

static val CACHE_CONTROL: CharSequence

Cache-Control header name

CHUNKED

static val CHUNKED: CharSequence

chunked header value

CLOSE

static val CLOSE: CharSequence

close header value

CONNECTION

static val CONNECTION: CharSequence

Connection header name

CONTENT_BASE

static val CONTENT_BASE: CharSequence

Content-Base header name

CONTENT_ENCODING

static val CONTENT_ENCODING: CharSequence

Content-Encoding header name

CONTENT_LANGUAGE

static val CONTENT_LANGUAGE: CharSequence

Content-Language header name

CONTENT_LENGTH

static val CONTENT_LENGTH: CharSequence

Content-Length header name

CONTENT_LOCATION

static val CONTENT_LOCATION: CharSequence

Content-Location header name

CONTENT_MD5

static val CONTENT_MD5: CharSequence

Content-MD5 header name

CONTENT_RANGE

static val CONTENT_RANGE: CharSequence

Content-Rage header name

CONTENT_TRANSFER_ENCODING

static val CONTENT_TRANSFER_ENCODING: CharSequence

Content-Transfer-Encoding header name

CONTENT_TYPE

static val CONTENT_TYPE: CharSequence

Content-Type header name

CONTINUE

static val CONTINUE: CharSequence

100-continue header value

COOKIE

static val COOKIE: CharSequence

Content-Cookie header name

DATE

static val DATE: CharSequence

Date header name

DEFLATE_GZIP

static val DEFLATE_GZIP: CharSequence

deflate,gzip header value

ETAG

static val ETAG: CharSequence

Etag header name

EXPECT

static val EXPECT: CharSequence

Expect header name

EXPIRES

static val EXPIRES: CharSequence

Expires header name

FROM

static val FROM: CharSequence

From header name

GET

static val GET: CharSequence

GET header value

HOST

static val HOST: CharSequence

Host header name

IDENTITY

static val IDENTITY: CharSequence

identity header value

IF_MATCH

static val IF_MATCH: CharSequence

If-Match header name

IF_MODIFIED_SINCE

static val IF_MODIFIED_SINCE: CharSequence

If-Modified-Since header name

IF_NONE_MATCH

static val IF_NONE_MATCH: CharSequence

If-None-Match header name

KEEP_ALIVE

static val KEEP_ALIVE: CharSequence

keep-alive header value

LAST_MODIFIED

static val LAST_MODIFIED: CharSequence

Last-Modified header name

LOCATION

static val LOCATION: CharSequence

Location header name

ORIGIN

static val ORIGIN: CharSequence

Origin header name

PROXY_AUTHENTICATE

static val PROXY_AUTHENTICATE: CharSequence

Proxy-Authenticate header name

PROXY_AUTHORIZATION

static val PROXY_AUTHORIZATION: CharSequence

Proxy-Authorization header name

REFERER

static val REFERER: CharSequence

Referer header name

RETRY_AFTER

static val RETRY_AFTER: CharSequence

Retry-After header name

SERVER

static val SERVER: CharSequence

Server header name

SET_COOKIE

static val SET_COOKIE: CharSequence

Set-Cookie header name

TEXT_HTML

static val TEXT_HTML: CharSequence

text/html header value

TRANSFER_ENCODING

static val TRANSFER_ENCODING: CharSequence

Transfer-Encoding header name

UPGRADE

static val UPGRADE: CharSequence

Upgrade header value

USER_AGENT

static val USER_AGENT: CharSequence

User-Agent header name

WEBSOCKET

static val WEBSOCKET: CharSequence

WebSocket header value

Functions

createOptimized

static fun createOptimized(value: String): CharSequence

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.