Fetch API wrapper, to allow unit testing.
The URL to make a request to.
Request initialization details.
Returns the current access token for the Hub, requesting one if necessary.
Sends a raw (string) request body to the Hub and receives a response.
The raw request body to send.
The access token to include in the request, if any.
Requests an updated access token from the Hub.
Sends the given request to the Hub instance, and returns the associated response.
An instance or subclass of HubRequest to be sent.
Transforms a JSON blob returned by the Hub into a subclass of HubResponse, based on the @type
field of the response.
The Hub response to be transformed.
Mapping of known response types.
Generated using TypeDoc
Represents a communication session with a particular Hub instance.