developit / developit/unfetch

global default options and handlers

Open
#22 22 comments 2 reactions 0 assignees View on GitHub
possible-addon
Dominant language
JavaScript
Stars
5.7k
Forks
204
PR merge metrics
No merged PRs in 30d

Description

Since fetch apis are used a lot in a typical web application, it would be nice to have a `unfetch.defaults` object that sets default parameters of all requests.
A use case would be to set base URL of all requests.
```
unfetch.defaults.baseURL = 'my-api-endpoint'
```

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.