mswjs / interceptors

Low-level network interception library.
https://npm.im/@mswjs/interceptors
MIT License
535 stars 120 forks source link

feat(wip): async hooks interceptor #495

Closed kettanaito closed 4 months ago

kettanaito commented 7 months ago

A proof of concept of using async_hooks for request interception. Quite interesting.

kettanaito commented 4 months ago

Good for reference, not good for production. Async hooks are awesome but they spread the context of a single request across multiple hooks, making it hard to write a consistent handling.

kettanaito commented 1 month ago

Released: v0.32.0 🎉

This has been released in v0.32.0!

Make sure to always update to the latest version (npm i @mswjs/interceptors@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.