The HTTP method e.g. "GET".
The HTTP path after the supplied prefix e.g. "/createRoom".
A dict of query params (these will NOT be urlencoded). If unspecified, there will be no query params.
Optionalbody: BodyThe HTTP JSON body.
additional options.
When paramOpts.doNotAttemptTokenRefresh is true, token refresh will not be attempted
when an expired token is encountered. Used to only attempt token refresh once.
The parsed response.
Form and return a homeserver request URL based on the given path params and prefix.
The HTTP path after the supplied prefix e.g. "/createRoom".
OptionalqueryParams: QueryDictA dict of query params (these will NOT be urlencoded).
Optionalprefix: stringThe full prefix to use e.g. "/_matrix/client/v2_alpha", defaulting to this.opts.prefix.
OptionalbaseUrl: stringThe baseUrl to use e.g. "https://matrix.org", defaulting to this.opts.baseUrl.
URL
Perform a request to the homeserver without any credentials.
The HTTP method e.g. "GET".
The HTTP path after the supplied prefix e.g. "/createRoom".
OptionalqueryParams: QueryDictA dict of query params (these will NOT be urlencoded). If unspecified, there will be no query params.
Optionalbody: BodyThe HTTP JSON body.
Optionalopts: IRequestOptsadditional options
The parsed response.
Sets the base URL for the identity server
Optionalurl: stringThe new base url
Perform an authorised request to the homeserver.