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)

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.

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.

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

Creates a new HttpClientEngineFactory based on this one with further configurations from the nested block.

Link copied to clipboard
abstract fun create(block: JsClientEngineConfig.() -> Unit = {}): HttpClientEngine

Creates a new HttpClientEngine optionally specifying a block configuring T.

open override fun create(block: JsClientEngineConfig.() -> Unit): HttpClientEngine

Creates a new HttpClientEngine optionally specifying a block configuring T.

open override fun create(block: JsClientEngineConfig.() -> Unit): HttpClientEngine

Creates a new HttpClientEngine optionally specifying a block configuring T.