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)

Properties

Link copied to clipboard
val CHECKED_HEADERS: List<String>

Headers handled by HTTP model as headers with special meaning.

Functions

Link copied to clipboard
fun basicAuth(user: String, password: String = ""): String
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