Package-level declarations

Types

Link copied to clipboard
interface ApiExecutor

A simple abstraction for executing network requests defined by ApiRequest and returning ApiResponse.

Link copied to clipboard

An extension of ApiRequest for requests that include form parameters in the body.

Link copied to clipboard
interface ApiRequest

A specification for an HTTP API request to be executed by an ApiExecutor.

Link copied to clipboard

An extension of ApiRequest for requests that include a body.

Link copied to clipboard

Represents the standard HTTP methods that can be used in an ApiRequest.

Link copied to clipboard
interface ApiResponse

Represents the response from an HTTP API request executed by an ApiExecutor.

Link copied to clipboard
class KtorHttpExecutor(val httpClient: ERROR CLASS: Symbol not found for HttpClient = getHttpClientEngine()) : ApiExecutor

An ApiExecutor implementation that uses Ktor for making HTTP requests.

Properties

Link copied to clipboard

The default timeout value for connecting to the server in milliseconds.

Link copied to clipboard

The default timeout value for HTTP requests in milliseconds.

Functions

Link copied to clipboard
actual fun getHttpClientEngine(): ERROR CLASS: Symbol not found for HttpClient
expect fun getHttpClientEngine(): ERROR CLASS: Symbol not found for HttpClient

Returns a platform-specific HttpClient engine.

actual fun getHttpClientEngine(): ERROR CLASS: Symbol not found for HttpClient

Returns a platform-specific HttpClient engine.