Customisation
defaultClientPool
customization
defaultClientPool
customizationKohttp provides a defaultClientPool
to have a single endpoint for your http request.
Fork HttpClient
for specific tasks
HttpClient
for specific tasksForked client uses exactly the same connection pool and dispatcher. However, it will custom parameters like custom timeout
s, additional interceptor
s or others.
In this example below patientClient
will share ConnectionPool
with defaultHttpClient
, however patientClient
requests will have custom read timeout.
Run HTTP methods on custom client
If defaultClientPool
or forked client does not suit you for some reason, it is possible to create your own one.
Last updated