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

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

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

UNSTABLE: New API, yet to be vetted.

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; }