ipfs / ipfs/js-ipfs-utils

fetch and http requests

Open
#154 5 comments 2 reactions 0 assignees View on GitHub
effort/days kind/maintenance status/blocked
Dominant language
JavaScript
Stars
25
Forks
30
PR merge metrics
No merged PRs in 30d

Description

This module exposes a HTTP class that lets you make HTTP requests. It accepts and returns interfaces from the browser fetch spec. Internally it juggles multiple fetch implementations between browsers, node, electron, and react native.

The types of all of these implementations differ to the degree that they are largely incompatible which means we `@ts-ignore` a bunch of stuff which lets us move on but gives us no type safety and causes all sorts of weird bugs and code gymnastics in other parts of the codebase.

We don't use or need the entirety of the fetch specification. Instead lets stop trying to be a general-purpose polymorphic fetch implementation and instead just expose the bits of the fetch API we use and have each implementation just service those bits.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.