KtorHttpTransport

constructor(engine: HttpClientEngineFactory<*>, baseUrl: String)

Creates KtorHttpTransport using HTTP engine (creating its own HttpClient internally.

Parameters

engine

HTTP engine to use

baseUrl

RPC server endpoint


constructor(httpClient: HttpClient, baseUrl: String)

Creates KtorHttpTransport using existing HTTP client.

Note that HttpClient must have timeout plug-in installed.

Parameters

httpClient

HTTP client to use

baseUrl

RPC server endpoint