Version: v1.2.2 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2016 License: BSD-3-Clause, Apache-2.0 Imports: 4 Imported by: 0


Simple HTTP Proxy

goproxy-basic starts an HTTP proxy on :8080. It only handles explicit CONNECT requests.

Start it in one shell:

goproxy-basic -v

Fetch goproxy homepage in another:

http_proxy= wget -O - \

The homepage HTML content should be displayed in the console. The proxy should have logged the request being processed:

2015/04/09 18:19:17 [001] INFO: Got request /p/introducing-goproxy-light-http-proxy/ GET
2015/04/09 18:19:17 [001] INFO: Sending request GET
2015/04/09 18:19:18 [001] INFO: Received response 200 OK
2015/04/09 18:19:18 [001] INFO: Copying response to client 200 OK [200]
2015/04/09 18:19:18 [001] INFO: Copied 44333 bytes to client error=<nil>


The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL