Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.shared_globals.d.ts>fetch

A modern runtime for JavaScript and TypeScript.
Latest
function fetch
allow-net
allow-read
import { fetch } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.shared_globals.d.ts";

The Fetch API which also supports setting a Deno.HttpClient which provides a way to connect via proxies and use custom TLS certificates.

Parameters

input: Request | URL | string
optional
init: RequestInit & { client: Deno.HttpClient; }