node-mitm icon indicating copy to clipboard operation
node-mitm copied to clipboard

Intercept and mock outgoing Node.js network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with....

Results 17 node-mitm issues
Sort by recently updated
recently updated
newest added

Fixes #14. I ran into a scenario where it was impossible to pair up client sockets, connect options, and HTTP requests using the current API. This (or something similar) makes...

I ran into a problem in `unexpected-mitm`-land where a test would break when keep-alive is active. When connecting to the same host:port as a previous test had also touched, the...

After writing some tests using mitm, I stumbled upon this simple problem: `Net.Socket#connect()` isn't stubbed by mitm, therefore the connection won't be intercepted. ```js const Net = require('net') const socket...

Hi Andri 👋🏻 I'm one of the maintainers of [nock](https://github.com/nock/nock/), I learned about `mitm` while browsing through some old issues. I'm currently working on decomposing nock, with the goal to...

Addresses #72 For context -- I am looking to use this functionality in the tests for [rsocket-js](https://github.com/rsocket/rsocket-js). Usage example: ```js it("rejects if the connection errors", async () => { //...

I was wondering how open are you for a PR that would open ability to configure a delay on the socket. I was thinking something between these line: ```js Mitm.prototype.connect...

First off -- thank you for the great package! I've already found it very useful after just a short usage period. For my use case, I am looking to be...

Good afternoon, first I found this library incredible, congratulations on the work! I use lib to intercept various protocols (http, https, mongodb, rabbitmq, redis, etc. ..) however, when I try...

We are seeing an issue with MITM involving: - HTTPS requests (does not impact HTTP) - Starting in Node 11.1 and continuing to current Node 14 (11.0.0 and prior works...

First of all, thanks for this wonderful utility. I wanted to intercept the http call and update host,port and path(uri) in the url and then let the request flow to...