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.

Report a problem

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.

Report a problem

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.

Report a problem

Functions

Link copied to clipboard

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

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

Creates or retrieves an instance of HttpClientEngine, applying optional configurations.

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

Creates or retrieves an instance of HttpClientEngine, applying optional configurations.

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

Creates or retrieves an instance of HttpClientEngine, applying optional configurations.