HttpHeaders

object HttpHeaders

Functions

Link copied to clipboard
fun checkHeaderName(name: String)

Validates header name throwing IllegalHeaderNameException when the name is not valid.

Link copied to clipboard
fun checkHeaderValue(value: String)

Validates header value throwing IllegalHeaderValueException when the value is not valid.

Link copied to clipboard
fun isUnsafe(header: String): Boolean

Check if header is unsafe. Header is unsafe if listed in UnsafeHeadersList

Properties

Link copied to clipboard
val Accept: String
Link copied to clipboard
val AcceptCharset: String
Link copied to clipboard
val AcceptEncoding: String
Link copied to clipboard
val AcceptLanguage: String
Link copied to clipboard
val AcceptRanges: String
Link copied to clipboard
val AccessControlAllowCredentials: String
Link copied to clipboard
val AccessControlAllowHeaders: String
Link copied to clipboard
val AccessControlAllowMethods: String
Link copied to clipboard
val AccessControlAllowOrigin: String
Link copied to clipboard
val AccessControlExposeHeaders: String
Link copied to clipboard
val AccessControlMaxAge: String
Link copied to clipboard
val AccessControlRequestHeaders: String
Link copied to clipboard
val AccessControlRequestMethod: String
Link copied to clipboard
val Age: String
Link copied to clipboard
val Allow: String
Link copied to clipboard
val ALPN: String
Link copied to clipboard
val AuthenticationInfo: String
Link copied to clipboard
val Authorization: String
Link copied to clipboard
val CacheControl: String
Link copied to clipboard
val Connection: String
Link copied to clipboard
val ContentDisposition: String
Link copied to clipboard
val ContentEncoding: String
Link copied to clipboard
val ContentLanguage: String
Link copied to clipboard
val ContentLength: String
Link copied to clipboard
val ContentLocation: String
Link copied to clipboard
val ContentRange: String
Link copied to clipboard
val ContentType: String
Link copied to clipboard
val Cookie: String
Link copied to clipboard
val DASL: String
Link copied to clipboard
val Date: String
Link copied to clipboard
val DAV: String
Link copied to clipboard
val Depth: String
Link copied to clipboard
val Destination: String
Link copied to clipboard
val ETag: String
Link copied to clipboard
val Expect: String
Link copied to clipboard
val Expires: String
Link copied to clipboard
val Forwarded: String
Link copied to clipboard
val From: String
Link copied to clipboard
val Host: String
Link copied to clipboard
val HTTP2Settings: String
Link copied to clipboard
val If: String
Link copied to clipboard
val IfMatch: String
Link copied to clipboard
val IfModifiedSince: String
Link copied to clipboard
val IfNoneMatch: String
Link copied to clipboard
val IfRange: String
Link copied to clipboard
val IfScheduleTagMatch: String
Link copied to clipboard
val IfUnmodifiedSince: String
Link copied to clipboard
val LastModified: String
Link copied to clipboard
val Link: String
Link copied to clipboard
val Location: String
Link copied to clipboard
val LockToken: String
Link copied to clipboard
val MaxForwards: String
Link copied to clipboard
val MIMEVersion: String
Link copied to clipboard
val OrderingType: String
Link copied to clipboard
val Origin: String
Link copied to clipboard
val Overwrite: String
Link copied to clipboard
val Position: String
Link copied to clipboard
val Pragma: String
Link copied to clipboard
val Prefer: String
Link copied to clipboard
val PreferenceApplied: String
Link copied to clipboard
val ProxyAuthenticate: String
Link copied to clipboard
val ProxyAuthenticationInfo: String
Link copied to clipboard
val ProxyAuthorization: String
Link copied to clipboard
val PublicKeyPins: String
Link copied to clipboard
val PublicKeyPinsReportOnly: String
Link copied to clipboard
val Range: String
Link copied to clipboard
val Referrer: String
Link copied to clipboard
val RetryAfter: String
Link copied to clipboard
val ScheduleReply: String
Link copied to clipboard
val ScheduleTag: String
Link copied to clipboard
val SecWebSocketAccept: String
Link copied to clipboard
val SecWebSocketExtensions: String
Link copied to clipboard
val SecWebSocketKey: String
Link copied to clipboard
val SecWebSocketProtocol: String
Link copied to clipboard
val SecWebSocketVersion: String
Link copied to clipboard
val Server: String
Link copied to clipboard
val SetCookie: String
Link copied to clipboard
val SLUG: String
Link copied to clipboard
val StrictTransportSecurity: String
Link copied to clipboard
val TE: String
Link copied to clipboard
val Timeout: String
Link copied to clipboard
val Trailer: String
Link copied to clipboard
val TransferEncoding: String
Link copied to clipboard
val UnsafeHeaders: Array<String>
Link copied to clipboard
val UnsafeHeadersList: List<String>

A list of header names that are not safe to use unless it is low-level engine implementation.

Link copied to clipboard
val Upgrade: String
Link copied to clipboard
val UserAgent: String
Link copied to clipboard
val Vary: String
Link copied to clipboard
val Via: String
Link copied to clipboard
val Warning: String
Link copied to clipboard
val WWWAuthenticate: String
Link copied to clipboard
val XCorrelationId: String
Link copied to clipboard
val XForwardedFor: String
Link copied to clipboard
val XForwardedHost: String
Link copied to clipboard
val XForwardedPort: String
Link copied to clipboard
val XForwardedProto: String
Link copied to clipboard
val XForwardedServer: String
Link copied to clipboard
val XHttpMethodOverride: String
Link copied to clipboard
val XRequestId: String
Link copied to clipboard
val XTotalCount: String