aalpern / goharproxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

goharproxy

Alternative to browsermob-proxy written in go.

Build Status

Features

Supports creating new proxies, serving HAR logs, and remapping hosts.

  • Create proxy: POST /proxy

    • Returns : { "port": [portNumber] }
  • 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
  • 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.

About

License:MIT License


Languages

Language:Go 100.0%