OptionalabortOptionalbaseThe alternative base url to use. If not specified, uses this.opts.baseUrl
Optionalheadersmap of additional request headers
OptionalinhibitOptionaljsonBy default, we will:
If the body is an object, JSON-encode it and set Content-Type: application/json in the
request headers (unless overridden by headers).
Set Accept: application/json in the request headers (again, unless overridden by headers).
Parse the response as JSON and return the parsed response.
Setting this to false inhibits all three behaviors, and the response is instead parsed as a UTF-8 string. It
defaults to true, unless rawResponseBody is set.
Instead of setting this to false, set rawResponseBody to true.
OptionalkeepOptionallocalThe maximum amount of time to wait before timing out the request. If not specified, there is no timeout.
OptionalprefixThe full prefix to use e.g. "/_matrix/client/v2_alpha". If not specified, uses this.opts.prefix.
OptionalrawSetting this to true does two things:
Inhibits the automatic addition of Accept: application/json in the request headers.
Causes the raw response to be returned as a https://developer.mozilla.org/en-US/docs/Web/API/Blob|Blob instead of parsing it as JSON.
Options object for
FetchHttpApi.requestOtherUrl.