Skip to main content

Class: Transport

Constructors

Constructor

new Transport(config): Transport

Parameters

Returns

Transport

Properties

Methods

execute()

execute<T>(fn): Promise<T>

Type Parameters

Parameters

Returns

Promise<T>

executeManual()

executeManual<T>(input, init?): Promise<T>
Run a request that has no entry in the generated OpenAPI types (currently only search()) through the same Auth -> Retry -> ErrorMapping pipeline the typed client uses, including the timeout-wrapped fetch. Successful bodies are read with readSuccessBody so a non-JSON success body is surfaced rather than silently collapsed to undefined.

Type Parameters

Parameters

Returns

Promise<T>

use()

use(interceptor): void

Parameters

Returns

void