ApiRequest

ApiRequest


data class ApiRequest(method: HttpMethod, headers: Map<String, String>?, body: String?, params: Map<String, String>?, url: String)

ApiRequest is a data class that keeps the main properties of a HTTP request.

Constructors

ApiRequest
fun ApiRequest(method: HttpMethod, headers: Map<String, String>?, body: String?, params: Map<String, String>?, url: String)

Properties

Name Summary
body
val body: String?
headers
val headers: Map<String, String>?
method
val method: HttpMethod
params
val params: Map<String, String>?
url
val url: String