Package-level declarations
Types
Link copied to clipboard
data class HttpClientConfiguration(val baseUrl: String = "", val isLenient: Boolean = true, val enableCache: Boolean = true, val expectSuccess: Boolean = true, val enableLogging: Boolean = false, val coerceInputValues: Boolean = true, val ignoreUnknownKeys: Boolean = true, val defaultHeaders: Map<String, String> = emptyMap(), val socketTimeoutMillis: Long = DEFAULT_TIMEOUT_MILLIS, val requestTimeoutMillis: Long = DEFAULT_TIMEOUT_MILLIS, val connectTimeoutMillis: Long = DEFAULT_TIMEOUT_MILLIS, val logLevel: HttpClientLogLevel = HttpClientLogLevel.ALL, val sensitiveHeaders: Set<String> = setOf("Authorization"))
Shared configuration for the Ktor client created by createHttpClient.
Link copied to clipboard
Logging detail used by clients created with createHttpClient.
Link copied to clipboard
This is a list of Hypertext Transfer Protocol (HTTP) response status codes.
Functions
Link copied to clipboard
fun createHttpClient(configuration: HttpClientConfiguration = HttpClientConfiguration()): HttpClient
Creates a configured Ktor client backed by the Android engine on Android and the Darwin engine on Apple platforms.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun <T> HttpClient.uploadMultipartRequest(endpoint: ApiEndpoint, formData: MultiPartFormDataContent, headers: Map<String, String> = emptyMap()): T