Implements
- Defined in src/transport.ts:94
Constructors
Methods
Constructors
constructor
Returns BrowserHttpTransport
Methods
request
Parameters
- options: HttpRequestOptions
Returns Promise<HttpResponse>
Implementation of HttpTransport.request
- Defined in src/transport.ts:95
requestSync
Blocking request, for legacy code that expects a return value rather than a promise. Uses a synchronous XMLHttpRequest, which browsers still support but have deprecated: it blocks the UI thread. Only reachable when the client was constructed with
sync: true, which the standalone build does by default.XMLHttpRequest is looked up on globalThis so this file still compiles for the Node build, whose lib does not include the DOM.
Parameters
- options: HttpRequestOptions
Returns HttpResponse
Implementation of HttpTransport.requestSync
- Defined in src/transport.ts:228
Browser HTTP transport using fetch API.