Class: Transport
Constructors
Constructor
new Transport(config):Transport
Parameters
| Parameter | Type |
|---|---|
config | TransportConfig |
Returns
Transport
Properties
Methods
execute()
execute<T>(fn):Promise<T>
Type Parameters
| Type Parameter | Default type |
|---|---|
T | any |
Parameters
| Parameter | Type |
|---|---|
fn | () => Promise<FetchResponse<any, any, any>> |
Returns
Promise<T>
executeManual()
executeManual<Run a request that has no entry in the generated OpenAPI types (currently onlyT>(input,init?):Promise<T>
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
| Type Parameter | Default type |
|---|---|
T | any |
Parameters
| Parameter | Type |
|---|---|
input | string | Request | URL |
init? | RequestInit |
Returns
Promise<T>
use()
use(interceptor):void
Parameters
| Parameter | Type |
|---|---|
interceptor | Middleware |
Returns
void