mswjs / interceptors

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

Abstract request emitting logic #568

Open kettanaito opened 2 months ago

kettanaito commented 2 months ago

The HTTP request emitting logic is identical across all the interceptors. It's time we abstracted it and provided a nice internal interface where interceptors feed in data into the interface and get back the verdict (or similar).

May be related to #431.