Js

object Js : HttpClientEngineFactory<HttpClientEngineConfig>

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)

You can also call the JsClient function to get the Js engine singleton:

val client = JsClient()

You can learn more about client engines from Engines.

Functions

Link copied to clipboard
open override fun create(block: HttpClientEngineConfig.() -> Unit): HttpClientEngine

Creates a new HttpClientEngine optionally specifying a block configuring T.