HttpClientFactory
Functions
Link copied to clipboard
fun create(connectionTimeout: Duration = 2.seconds, requestTimeout: Duration = 10.seconds, socketTimeout: Duration = 10.seconds, maxConnections: Int = 128, enableLogging: Boolean = false, logLevel: LogLevel = LogLevel.INFO, negotiation: ContentNegotiationConfig.() -> Unit = { json() }, configure: HttpClientConfig<CIOEngineConfig>.() -> Unit = {}): HttpClient
Creates a configured instance of an HttpClient with specified connection settings, timeouts, and content negotiation.