HttpMessage

interface HttpMessage

A message either from the client or the server, that has headers associated.

Properties

Link copied to clipboard
abstract val headers: Headers

Message Headers

Extensions

Link copied to clipboard
fun HttpMessage.cacheControl(): List<HeaderValue>

Parse CacheControl header.

Link copied to clipboard
fun HttpMessage.charset(): Charset?

Parse charset from Content-Type header value.

Link copied to clipboard
fun HttpMessage.contentLength(): Long?

Parse Content-Length header value.

Link copied to clipboard
fun HttpMessage.contentType(): ContentType?

Parse Content-Type header value.

Link copied to clipboard
fun HttpMessage.date(): Date?

Parse Date header.

Link copied to clipboard
fun HttpMessage.etag(): String?

Parse E-Tag header value.

Link copied to clipboard
fun HttpMessage.expires(): Date?

Parse Expires header.

Link copied to clipboard
fun HttpMessage.lastModified(): Date?

Parse Last-Modified header.

Link copied to clipboard
fun HttpMessage.setCookie(): List<Cookie>

Parse Set-Cookie header value.

Link copied to clipboard
fun HttpMessage.vary(): List<String>?

Parse Vary header value.