Interface RequestOptions

Request options

interface RequestOptions {
    baseURL?: string;
    headers?: Record<string, any>;
    responseType?: "text" | "json" | "blob" | "arrayBuffer";
}

Properties

baseURL?: string

The base URL used for this request

headers?: Record<string, any>

Headers to apply for this request

responseType?: "text" | "json" | "blob" | "arrayBuffer"

The type of response given