httproxy

command module
v3.7.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

README

httproxy

Simple HTTP proxy with logging ability written in Go.

Install:

go get -u github.com/dddpaul/httproxy

Or grab Docker image:

docker pull dddpaul/httproxy

Usage:

httproxy [OPTIONS]
  -port string
        Port to listen (prepended by colon), i.e. :8080 (default ":8080")
  -url value
        List of URL to proxy to, i.e. http://localhost:8081
  -timeout int
        Proxy request timeout (ms), 0 means no timeout
  -error-response-code int
    	Override HTTP response code on proxy error (default 502)
  -error-response-body string
    	Body content on proxy error
  -follow
        Follow 3xx redirects internally
  -verbose
        Print request details

Documentation

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