HttpMessageBuilder

interface HttpMessageBuilder

A builder message either for the client or the server, that has a headers builder associated.

Properties

Link copied to clipboard
abstract val headers: HeadersBuilder

MessageBuilder HeadersBuilder

Extensions

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

fun HttpMessageBuilder.charset(): Charset?

Parse charset from Content-Type header value.

Link copied to clipboard
fun HttpMessageBuilder.contentLength(length: Int)

fun HttpMessageBuilder.contentLength(): Long?

Parse Content-Length header value.

Link copied to clipboard
fun HttpMessageBuilder.contentType(type: ContentType)

Set Content-Type header.

fun HttpMessageBuilder.contentType(): ContentType?

Parse Content-Type header value.

Link copied to clipboard
fun HttpMessageBuilder.cookies(): List<Cookie>

Parse Set-Cookie header value.

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

Parse E-Tag header value.

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

Parse Expires header.

Link copied to clipboard
fun HttpMessageBuilder.ifModifiedSince(date: Date)

Set If-Modified-Since header.

Link copied to clipboard
fun HttpMessageBuilder.ifNoneMatch(value: String)

Set If-None-Match header value.

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

Parse Last-Modified header.

Link copied to clipboard
fun HttpMessageBuilder.maxAge(seconds: Int)

Append Max-Age header value.

Link copied to clipboard
fun HttpMessageBuilder.userAgent(content: String)

Set User-Agent header value.

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

Parse Vary header value.