browsermob-proxy-api
Advanced tools
Comparing version 0.3.1 to 0.3.2
10
index.js
@@ -136,2 +136,12 @@ var http = require('http'); | ||
// LittleProxy HTTP request/response filters | ||
addRequestFilter: function(port, js, callback) { | ||
this._post('/proxy/' + port + '/filter/request', js, JAVASCRIPT_MIME, callback); | ||
}, | ||
addResponseFilter: function(port, js, callback) { | ||
this._post('/proxy/' + port + '/filter/response', js, JAVASCRIPT_MIME, callback); | ||
}, | ||
// Legacy HTTP request/response filters | ||
addRequestInterceptor: function(port, js, callback) { | ||
@@ -138,0 +148,0 @@ this._post('/proxy/' + port + '/interceptor/request', js, JAVASCRIPT_MIME, callback); |
{ | ||
"name": "browsermob-proxy-api", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "NodeJS bindings for controlling a browsermob-proxy instance (creating ports, HARs, etc)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
22735
9
178