bmproxy: Wrapper around the 'BrowserMob' Proxy REST API for R

Description Usage Arguments Value Examples

Description

Wrapper around the 'BrowserMob Proxy' REST API for R. 'BrowserMob Proxy' is a utility to help web developers watch and manipulate network traffic from their AJAX applications.

Start a Browser Mob proxy

Usage

1
2
bmproxy(port = 9090L, version = "latest", proxyPortRange = 39500L:39999L,
  ttl = 600L)

Arguments

port

Port to run on

version

what version of chromedriver to run. Default = "latest" which runs the most recent version. To see other version currently sourced run binman::list_versions("chromedriver")

proxyPortRange

The range of ports to use for proxies as integers.

ttl

Time in seconds until an unused proxy is deleted

Value

Returns a list with named elements process, output, error and stop. process is the output from calling spawn_process output, error and stop are functions calling process_read, process_read with "stderr" pipe and process_kill respectively on process.

Examples

1
2
3
4
5
## Not run: 
bmPxy <- bmproxy()
bmPxy$stop()

## End(Not run)

johndharrison/bmproxy documentation built on May 19, 2019, 5:13 p.m.