RequestOptions

data class RequestOptions(val headers: Map<String, String> = emptyMap(), val urlParameters: Map<String, String> = emptyMap(), val timeout: Timeout? = null)

Represents options for configuring a request to an endpoint.

Constructors

Link copied to clipboard
constructor(headers: Map<String, String> = emptyMap(), urlParameters: Map<String, String> = emptyMap(), timeout: Timeout? = null)

Properties

Link copied to clipboard

A mutable map of header names to their respective values to be sent with the request.

Link copied to clipboard
val timeout: Timeout? = null

Http operations timeouts.

Link copied to clipboard

A mutable map of URL parameter names to their respective values to be appended to the request URL.