http-proxy

command module
v0.0.0-...-b478a38 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

README

Simple Go HTTP proxy

Build Status Godoc

A simple HTTP proxy in Go, no caching. Supports HTTP and CONNECT method for HTTPS & HTTP/2.

It listens on TCP IPv4/IPv6 at the specified port.

Example:

$ go run http_proxy.go -listen :8080 [-add-forwarded-for]

Flag -add-forwarded-for adds client IP to the X-Forwarded-For header.

Setup

Install go package, create Debian package, install:

$ go get -u github.com/StalkR/http-proxy
$ cd $GOPATH/src/github.com/StalkR/http-proxy
$ fakeroot debian/rules clean binary
$ sudo dpkg -i ../http-proxy_1-1_amd64.deb

Configure in /etc/default/http-proxy and start with /etc/init.d/http-proxy start.

License

Apache License, version 2.0.

Bugs, feature requests, questions

Create a new issue.

Documentation

Overview

Binary http_proxy is a simple HTTP proxy, no caching. Supports HTTP, and CONNECT method for HTTPS & HTTP/2.

Jump to

Keyboard shortcuts

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