Package-level declarations

Types

Link copied to clipboard

Commonly used HTTP header names.

Link copied to clipboard

Encoding of parameters into headers.

Link copied to clipboard

HTTP Headers.

Link copied to clipboard
data class Method(val name: String, val requiresBody: Boolean = false)

HTTP Request Method.

Link copied to clipboard
typealias Parameters = Map<String, Any?>

Parameters map.

Link copied to clipboard
interface Request

HTTP request based on coroutines.

Link copied to clipboard
interface Response

HTTP response.

Link copied to clipboard
data class ResultResponse<T : Any>(val result: T, response: Response) : Response

HTTP response that includes a parsed/decoded result.

Functions

Link copied to clipboard

Retrieves all the headers matching the given name.

Link copied to clipboard

Retrieves the first header matching the given name or throws an error.

Link copied to clipboard

Retrieves the first header matching the given name or returns null.

Link copied to clipboard

Converts the header list into an equivalent multi-map.

Properties

Link copied to clipboard

Convenience accessor for HTTP Content-Length header.

Link copied to clipboard

Convenience accessor for HTTP Content-Type header.

Link copied to clipboard

Convenience for checking if the Response.statusCode represents a successful response.