0.4.0 • Published 8 years ago

browsermob-proxy-api v0.4.0

Weekly downloads
3,138
License
MIT
Repository
github
Last release
8 years ago

Node BrowserMob Proxy API

This project provides a NodeJS interface for interacting with a running BrowserMob Proxy through it's REST API. All methods in the REST API are available including JavaScript-based interceptors for requests/responses.

Usage

Installation command is npm install browsermob-proxy-api

Documentation

For the specifics of the REST API used by BrowserMob Proxy, please see their documentation.

Examples

To open a port (10800) and start a new HAR:

var MobProxy = require('browsermob-proxy-api');
var proxy = new MobProxy({'host':'localhost', 'port': '8080'});

// start listening on port 10800:
proxy.startPort(10800, function(err, data) {
    // start new HAR report
    proxy.createHAR(10800, { 'initialPageRef': 'foo' });
});

To get the current HAR from a previously opened port:

proxy.getHAR(10800, function(err, data) {
    console.log(data);
});
0.4.0

8 years ago

0.3.2

8 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.5

10 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago