Alternative to browsermob-proxy written in go.
Supports creating new proxies, serving HAR logs, and remapping hosts.
-
Create proxy: POST /proxy
- Returns :
{ "port": [portNumber] }
- Returns :
-
Get HAR: PUT /proxy/[portNumber]/har
- Returns HAR log in json, and clears previous entries
-
Remapping hosts: POST /proxy/[portNumber]/hosts
- Expects json containing array of :
{ "Host" : [oldHost], "NewHost" : [newHost] }
- Supports IP / host name
- Expects json containing array of :
-
Delete Proxy: DELETE /proxy/[portNumber]
Currently does not fill whole HAR - timings contain only timing between request start and response end. Also does not work with https requests yet.