mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
15 lines
265 B
TypeScript
15 lines
265 B
TypeScript
import Mitm = require('mitm');
|
|
|
|
const mitm = Mitm();
|
|
mitm.disable();
|
|
|
|
mitm.on('connect', (bypassableSocket, opts): void => {
|
|
bypassableSocket.bypass();
|
|
});
|
|
|
|
mitm.on('connection', (socket, opts): void => {
|
|
});
|
|
|
|
mitm.on('request', (request, response): void => {
|
|
});
|