Interface IRequestOpts

interface IRequestOpts {
    abortSignal?: AbortSignal;
    baseUrl?: string;
    headers?: Record<string, string>;
    inhibitLogoutEmit?: boolean;
    json?: boolean;
    keepAlive?: boolean;
    localTimeoutMs?: number;
    prefix?: string;
}

Hierarchy

  • Pick<RequestInit, "priority">
    • IRequestOpts

Properties

abortSignal?: AbortSignal
baseUrl?: string

The alternative base url to use. If not specified, uses this.opts.baseUrl

headers?: Record<string, string>

map of additional request headers

inhibitLogoutEmit?: boolean
json?: boolean
keepAlive?: boolean
localTimeoutMs?: number

The maximum amount of time to wait before timing out the request. If not specified, there is no timeout.

prefix?: string

The full prefix to use e.g. "/_matrix/client/v2_alpha". If not specified, uses this.opts.prefix.