create
Creates a configured instance of an HttpClient with specified connection settings, timeouts, and content negotiation.
Return
a configured instance of HttpClient.
Parameters
the timeout duration for establishing connections, default is 2 seconds.
the timeout duration for the entire request, default is 10 seconds.
the timeout duration for reading data from sockets, default is 10 seconds.
the maximum number of connections allowed in the connection pool, default is 128.
whether to enable HTTP request/response logging, default is false.
the logging level for HTTP requests, the default is LogLevel.INFO.
registers the client's content converters and is the only codec installed; the default is kotlinx.serialization JSON with Ktor's default Json. Pass { json(myJson) } for another Json, or another converter (e.g. { jackson() }).
runs last on the client's configuration, to install further plugins or extend the ones above.