Signed Fetch
Métodos
interface Request {
// La URL objetivo de la solicitud:
url: string;
// Parámetros opcionales y autoexplicativos para la solicitud:
init?: {
method?: string;
body?: string;
headers: { [key: string]: string };
};
}
interface Response {
// Si la solicitud HTTP se realizó con éxito (códigos distintos de 2xx no son fallos)
ok: boolean;
// Los detalles autoexplicativos de la respuesta:
status: number;
statusText: string;
headers: { [key: string]: string };
body: string;
}
function signedFetch(Request): Promise<Response>;Última actualización