http-mitm
v0.1.0
Published
This is a simple http proxy, for man in the middle purposes.
Downloads
2
Readme
Example:
var HttpMitm = require('http-mitm');
var mitm = new HttpMitm();
mitm.onC2S((packetSession) => {
});
mitm.onS2C((packetSession) => {
});
mitm.listen(8080);
packetSession type:
- request | response
- getUrl()
- setMethod(method: string)
- getMethod()
- setHeaders(headers: object)
- getHeaders()
- setHeader(name: string, value: any)
- getHeader(name: string)
- pushBody(chunk: Buffer)
- setBody(body: Buffer)
- getBody()