RequestConfig

data class RequestConfig<T>(val method: RequestMethod, val path: String, val headers: MutableMap<String, String> = mutableMapOf(), val params: MutableMap<String, Any> = mutableMapOf(), val query: MutableMap<String, List<String>> = mutableMapOf(), val requiresAuthentication: Boolean, val body: T? = null)

Defines a config object for a given request. NOTE: This object doesn't include 'body' because it allows for caching of the constructed object for many request definitions. NOTE: Headers is a Map because rfc2616 defines multi-valued headers as csv-only.

Constructors

Link copied to clipboard
constructor(method: RequestMethod, path: String, headers: MutableMap<String, String> = mutableMapOf(), params: MutableMap<String, Any> = mutableMapOf(), query: MutableMap<String, List<String>> = mutableMapOf(), requiresAuthentication: Boolean, body: T? = null)

Properties

Link copied to clipboard
val body: T? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard