Js
A JavaScript client engine that uses the fetch API to execute requests.
To create the client with this engine, pass it to the HttpClient
constructor:
val client = HttpClient(Js)
Content copied to clipboard
You can also call the JsClient function to get the Js engine singleton:
val client = JsClient()
Content copied to clipboard
You can learn more about client engines from Engines.
Functions
Link copied to clipboard
fun <T : HttpClientEngineConfig> HttpClientEngineFactory<T>.config(nested: T.() -> Unit): HttpClientEngineFactory<T>
Creates a new HttpClientEngineFactory based on this one with further configurations from the nested block.
Link copied to clipboard
Creates a new HttpClientEngine optionally specifying a block configuring T.