Package-level declarations

Helper methods and structures for performing HTTP requests.

Types

Link copied to clipboard
data class HttpContentRangeHeader(val unit: String, val from: Long?, val to: Long?, val length: Long?)
Link copied to clipboard
class HttpCredentials(val username: String, val password: String)

Represents credentials for HTTP Basic authentication. *

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class PartialResponse<TEntity>(val elements: List<TEntity>, val range: HttpContentRangeHeader?)

Represents a subset of a set of elements.

Link copied to clipboard

Captures the content of a Response for caching.

Functions

Link copied to clipboard
fun Request.Builder.options(): Request.Builder
Link copied to clipboard
fun Request.Builder.uri(uri: URI): Request.Builder
Link copied to clipboard
fun OkHttpClient.withAccept(mediaTypes: List<MediaType>): OkHttpClient
Link copied to clipboard
fun OkHttpClient.withBasicAuth(credentials: HttpCredentials?): OkHttpClient