Interface Request<T>

interface Request<T = any> {
    body?: HTMLFormElement | BodyInit | T;
    headers?: HeadersInit;
    method?: "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "GET";
    path: string | URL;
    responseType?: XMLHttpRequestResponseType;
    signal?: AbortSignal;
    timeout?: number;
    withCredentials?: boolean;
}

Type Parameters

  • T = any

Hierarchy (View Summary)

Properties

body?: HTMLFormElement | BodyInit | T
headers?: HeadersInit
method?: "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "GET"
path: string | URL
responseType?: XMLHttpRequestResponseType
signal?: AbortSignal
timeout?: number
withCredentials?: boolean