An open API service indexing awesome lists of open source software.

https://github.com/cuigh/shadow

A lightweight HTTP proxy for Go.
https://github.com/cuigh/shadow

golang http https proxy

Last synced: 3 months ago
JSON representation

A lightweight HTTP proxy for Go.

Awesome Lists containing this project

README

          

# shadow

**shadow** is a simple and fast http proxy written by Go.

## Usage

Start a transparent http proxy

```
./shadow -addr :7778
```

With parent proxy

```
./shadow -addr :7777 -proxy :7778
```

Using configuration file instead of command line args

```
./shadow -c shadow.json
```

## Args

Name | Description
---------- | ----------
help, h | Prints usage.
version, v | Prints shadow version.
config, c | configuration file, all other args arg ignored if config is specified.
addr, a | Listen address (default ":1080").
proxy, p | Parent proxy address.
dial_timeout, dt | Timeout for dialing proxy, by milliseconds.
read_timeout, rt | Timeout for waiting response headers, by milliseconds.
verbose | Verbose output.

## Configuration

Here is a config sample

```json
{
"addr": ":7778",
"dial_timeout": 30000,
"read_timeout": 30000,
"proxy": "",
"verbose": true
}
```