DioxusLabs / DioxusLabs/dioxus
Intercept HTTP requests from UI
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
Allow to intercept HTTP calls (and generally any resource) from JavaScript / WebView / WASM, etc.
## Reasoning
While Rust ecosystem is growing, we are still have to use 3rdparty JS libraries. Sometimes it is advantageous to intercept requests from such libraries for caching or adding access tokens (or headers). This also may help to sanitize behavior of 3rdparty Dioxus components.
## Possible implementation
Add a middleware layer that allows to register intercept handlers during Dioxus application init phase. The user should explicitly register such handlers including those required for 3rdparty libraries and plugins.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.