apache / couchdb-fauxton

Fauxton is the new Web UI for CouchDB
https://github.com/apache/couchdb-fauxton
Apache License 2.0
378 stars 225 forks source link

Add pre-fetch function to ajax module #1335

Closed Antonio-Maranhao closed 2 years ago

Antonio-Maranhao commented 2 years ago

Overview

Allows setting a 'pre-fetch' function that is executed before every network request made by the app/core/ajax.js module. It can be used to run actions before fetch() is invoked by Fauxton, even allowing one to modify the original fetch() parameters.

Testing recommendations

Unit tests provided to validate the new function. Application behavior hasn't changed as the default pre-fetch function is a no-op.

Checklist