Skip to content
/ dfetch Public

Promise based HTTP client for Deno inspired by axios.

Notifications You must be signed in to change notification settings

dfoobar/dfetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/x/dfetch/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... ⚠️

About

Promise based HTTP client for Deno inspired by axios.

Resources

Stars

Watchers

Forks