Builder

class Builder(val url: AbsoluteUrl, var method: HttpRequest.Method = Method.GET, var headers: MutableMap<String, MutableList<String>> = mutableMapOf(), var body: HttpRequest.Body? = null, var extras: Bundle = Bundle(), var connectTimeout: Duration? = null, var readTimeout: Duration? = null, var allowUserInteraction: Boolean = false)

Constructors

Link copied to clipboard
constructor(url: AbsoluteUrl, method: HttpRequest.Method = Method.GET, headers: MutableMap<String, MutableList<String>> = mutableMapOf(), body: HttpRequest.Body? = null, extras: Bundle = Bundle(), connectTimeout: Duration? = null, readTimeout: Duration? = null, allowUserInteraction: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Adds value to header values associated with key.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Sets header with key to value overriding current values, if any.

Sets header with key key to values overriding current values, if any.

Link copied to clipboard

Initializes a POST request with the given form data.

Link copied to clipboard

Issue a byte range request. Use -1 to download until the end.