connect

open fun connect(baseUri: String): Client

Create a default JDK client.

Parameters

baseUri

uri to connect to.


open fun connect(baseUri: String, options: RequestOptions): Client

Create a default JDK client.

Parameters

baseUri

uri to connect to

options

default options to use in all the requests.


open fun connect(baseUri: String, serdeFactory: SerdeFactory): Client

Create a default JDK client.

Parameters

baseUri

uri to connect to

serdeFactory

Serde factory to use. If you're just wrapping this client in a code-generated client, you don't need to provide this parameter.


open fun connect(baseUri: String, serdeFactory: SerdeFactory, options: RequestOptions): Client

Create a default JDK client.

Parameters

baseUri

uri to connect to

serdeFactory

Serde factory to use. If you're just wrapping this client in a code-generated client, you don't need to provide this parameter.

options

default options to use in all the requests.


open fun connect(baseUri: String, @Nullable serdeFactory: @Nullable SerdeFactory, @Nullable payloadCodec: @Nullable PayloadCodec, @Nullable options: @Nullable RequestOptions): Client

Create a default JDK client.

Parameters

baseUri

uri to connect to

serdeFactory

Serde factory to use. If you're just wrapping this client in a code-generated client, you don't need to provide this parameter.

payloadCodec

codec used to encode request bodies after serialization, and decode response bodies before deserialization. It must match the codec configured on the services invoked through this client.

options

default options to use in all the requests.

See also