cozy / cozy-client-js

Javascript library to write Cozy applications
https://docs.cozy.io/en/cozy-client-js/README/
MIT License
11 stars 12 forks source link

Client-level default `fetch` options. #230

Open aenario opened 6 years ago

aenario commented 6 years ago

In cozy-desktop, to support proxies, we need to setup an http.agent for every request.

It will be cool to have a quick way to do it at cozy-client level, like cozy.baseFetchOptions = {agent: myAgent}