request

abstract suspend fun request(httpMethod: String, url: String, urlParameters: Array<KeyValue> = emptyArray(), httpHeaders: Array<KeyValue> = emptyArray(), body: Any?): HttpResponse(source)

Makes an HTTP request using the specified HTTP method, URL, URL parameters, HTTP headers, and request body.

Return

the HttpResponse object representing the response received from the server

Parameters

httpMethod

the HTTP method to be used for the request (e.g., "GET", "POST", "PUT", "DELETE", etc.)

url

the URL to send the request to

urlParameters

the array of URL parameters to be included in the request (default is an empty array)

httpHeaders

the array of HTTP headers to be included in the request (default is an empty array)

body

the request body to be sent with the request (default is null)