kohttp / io.github.rybalkinsd.kohttp.client / defaultHttpClient

defaultHttpClient

val defaultHttpClient: OkHttpClient

A default http client. Default client is recommended to use for your requests.

Default client is either configured with /kohttp.yaml if present or by defaults connectTimeout: 10 seconds readTimeout: 10 seconds writeTimeout: 10 seconds followRedirects: true followSslRedirects: true

maxIdleConnections: 5 keepAliveDuration: 5 minutes

For specific needs it's possible to fork defaultHttpClient

Since
0.0.1

Author
sergey