HttpClient

interface HttpClient(source)

Interface for a generic HTTP client.

Functions

Link copied to clipboard
abstract suspend fun delete(url: String, parameters: Map<String, String> = emptyMap()): HttpClientResponse

Sends a DELETE request to the specified URL.

Link copied to clipboard
abstract suspend fun get(url: String, parameters: Map<String, String> = emptyMap()): HttpClientResponse

Sends a GET request to the specified URL.

Link copied to clipboard
abstract suspend fun patch(url: String, body: String, parameters: Map<String, String> = emptyMap()): HttpClientResponse

Sends a PATCH request to the specified URL.

Link copied to clipboard
abstract suspend fun post(url: String, body: String, parameters: Map<String, String> = emptyMap()): HttpClientResponse

Sends a POST request to the specified URL.

Link copied to clipboard
abstract suspend fun put(url: String, body: String, parameters: Map<String, String> = emptyMap()): HttpClientResponse

Sends a PUT request to the specified URL.