dfecth

Promise based HTTP client for Deno inspired by axios.

✴️ Features

  • Make http requests like axios
  • Supports the Promise API
  • Automatic transforms for JSON data
  • Cancel requests

ℹ️ Usage

import DFetch from "https://deno.land/x/dfetch/mod.ts";

DFetch.get("https://google.es").then((response) => {
  // response
});

You can use type generics with dfetch

import DFetch from "https://deno.land/xDFfetch/mod.ts";

const { data } = await DFetch<{ delay: string }>(
  "https://postman-echo.com/delay/2"
);

// data type would be
// {delay: string}

💻 Authors

WE ARE WORKING ON DOCS… ⚠️