Package-level declarations

HTTP code shared between clients and servers.

Types

Link copied to clipboard
data class SslSettings(val keyStore: URL? = null, val keyStorePassword: String = "", val trustStore: URL? = null, val trustStorePassword: String = "", val clientAuth: Boolean = false)

Functions

Link copied to clipboard
fun bodyToBytes(body: Any): ByteArray
Link copied to clipboard
fun checkHeaders(headers: Headers)
Link copied to clipboard
fun formatQueryString(parameters: QueryParameters): String
Link copied to clipboard
fun parseContentType(contentType: String): ContentType
Link copied to clipboard
fun parseQueryString(query: String): QueryParameters

Parse query string such as paramA=valueA&paramB=valueB into a map of several key-value pairs separated by '&' where key is the param name before '=' as String and value is the string after '=' as a list of String (as a query parameter may have many values).

Link copied to clipboard
fun Instant.toHttpFormat(): String
fun LocalDateTime.toHttpFormat(): String
Link copied to clipboard
fun String.urlDecode(): String
Link copied to clipboard
fun String.urlEncode(): String

Properties

Link copied to clipboard
val checkedHeaders: List<String>
Link copied to clipboard
val gmtZone: ZoneId
Link copied to clipboard
val httpDateFormatter: DateTimeFormatter