ApiRequest

ApiRequest

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

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

Constructors

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

Functions

Name Summary
component1
Content
operator fun component1(): HttpMethod


component2
Content
operator fun component2(): Map<String, String>?


component3
Content
operator fun component3(): String?


component4
Content
operator fun component4(): Map<String, String>?


component5
Content
operator fun component5(): String


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


equals
Content
open operator override fun equals(other: Any?): Boolean


hashCode
Content
open override fun hashCode(): Int


toString
Content
open override fun toString(): 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