Signed Fetch
Methods
interface Request {
// The request target URL:
url: string;
// Optional, self-explanatory parameters for the request:
init?: {
method?: string;
body?: string;
headers: { [key: string]: string };
};
}
interface Response {
// Whether the HTTP request was performed successfully (codes other than 2xx are not failures)
ok: boolean;
// The self-explanatory details of the response:
status: number;
statusText: string;
headers: { [key: string]: string };
body: string;
}
function signedFetch(Request): Promise<Response>;Last updated