interface RequestOptions {
    auth?: string | boolean;
    files?: File[];
    form?: FormData;
    headers?: Record<string, string>;
    json?: unknown;
    method:
        | "GET"
        | "POST"
        | "PUT"
        | "PATCH"
        | "DELETE";
    path: string;
    priority?: boolean;
    query?: URLSearchParams;
    reason?: string;
    route?: string;
}

Properties

auth?: string | boolean
files?: File[]
form?: FormData
headers?: Record<string, string>
json?: unknown
method:
    | "GET"
    | "POST"
    | "PUT"
    | "PATCH"
    | "DELETE"
path: string
priority?: boolean
query?: URLSearchParams
reason?: string
route?: string