HttpRequest

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var host: String?
Link copied to clipboard
Link copied to clipboard
var path: String?
Link copied to clipboard
var port: Int?
Link copied to clipboard
Link copied to clipboard
var url: String?
Link copied to clipboard

Functions

Link copied to clipboard
fun accept(accept: String): HttpRequest
Link copied to clipboard
suspend fun delete(): HttpResponse
Link copied to clipboard
fun file(key: String, fileName: String, fileBody: ByteArray): HttpRequest
Link copied to clipboard
fun followRedirect(followRedirect: Boolean): HttpRequest
Link copied to clipboard
fun forceApplicationFormUrlEncoded(forceApplicationFormUrlEncoded: Boolean): HttpRequest
Link copied to clipboard
fun forceMultipart(forceMultipart: Boolean): HttpRequest
Link copied to clipboard
fun forceMultipartFormData(forceMultipartFormData: Boolean): HttpRequest
Link copied to clipboard
suspend fun get(): HttpResponse
Link copied to clipboard
fun header(key: String, value: String): HttpRequest
Link copied to clipboard
fun host(host: String): HttpRequest
Link copied to clipboard
fun json(json: String): HttpRequest
Link copied to clipboard
fun param(key: String, value: Any): HttpRequest
Link copied to clipboard
fun params(params: Map<String, Any>): HttpRequest
Link copied to clipboard
suspend fun patch(): HttpResponse
Link copied to clipboard
fun path(path: String): HttpRequest
Link copied to clipboard
fun pathValue(key: String, value: String): HttpRequest
Link copied to clipboard
fun port(port: Int?): HttpRequest
Link copied to clipboard
suspend fun post(): HttpResponse
Link copied to clipboard
suspend fun put(): HttpResponse
Link copied to clipboard
fun queries(queries: Map<String, Any>): HttpRequest
Link copied to clipboard
fun query(key: String, value: Any): HttpRequest
Link copied to clipboard
fun schema(schema: String): HttpRequest
Link copied to clipboard
Link copied to clipboard
fun userAgent(userAgent: String): HttpRequest