Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

HttpRequest

function HttpRequest(
method:
| "GET"
| "POST"
| "HEAD"
| "PUT"
| "PATCH"
| "DELETE"
,
url: string,
init: {
headers: Record<string, string>;
body: ArrayBuffer;
}
,
): Promise<HttpResponse>;
§
HttpRequest(method: "GET" | "POST" | "HEAD" | "PUT" | "PATCH" | "DELETE", url: string, init: {
headers: Record<string, string>;
body: ArrayBuffer;
}
): Promise<HttpResponse>
[src]

§Parameters

§
method: "GET" | "POST" | "HEAD" | "PUT" | "PATCH" | "DELETE"
[src]
§
url: string
[src]
§
init: {
headers: Record<string, string>;
body: ArrayBuffer;
}
[src]

§Return Type