Request

data class Request(method: Method, path: Path, body: Any?, headers: Map<String, List<String>>, pathParameters: Map<String, List<String>>, formParameters: Map<String, List<String>>, parts: Map<String, Part>, contentType: String?)

HTTP request send to the server.

Constructors

Link copied to clipboard
fun Request(method: Method, path: String, body: Any? = null, headers: Map<String, List<String>> = emptyMap(), pathParameters: Map<String, List<String>> = emptyMap(), formParameters: Map<String, List<String>> = emptyMap(), parts: Map<String, Part> = emptyMap(), contentType: String? = null)
Link copied to clipboard
fun Request(method: Method, path: Path, body: Any? = null, headers: Map<String, List<String>> = emptyMap(), pathParameters: Map<String, List<String>> = emptyMap(), formParameters: Map<String, List<String>> = emptyMap(), parts: Map<String, Part> = emptyMap(), contentType: String? = null)

Properties

Link copied to clipboard
val body: Any? = null
Link copied to clipboard
val contentType: String? = null
Link copied to clipboard
val formParameters: Map<String, List<String>>
Link copied to clipboard
val headers: Map<String, List<String>>
Link copied to clipboard
val method: Method
Link copied to clipboard
val parts: Map<String, Part>
Link copied to clipboard
val path: Path
Link copied to clipboard
val pathParameters: Map<String, List<String>>