tb0hdan / reverseproxy

Reverse HTTP Proxy written in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reverseproxy

Reverse HTTP Proxy written in Go

Description

I've written this (very limited) reverse HTTP proxy as an excercise and reference for future products.

Update: It appears that stdlib reversproxy allows request and response modification, but not different response based on request.

Usage

make

./reverseproxy -upstream ip.here

Help

Usage of ./reverseproxy:
  -bind string
        Bind addr, e.g. 0.0.0.0:8000 (default "0.0.0.0:8000")
  -upstream string
        HTTP upstream, e.g. 192.168.3.1:81 or just 192.168.3.1

Notes

Standard library (better) implementation exists: https://godoc.org/net/http/httputil#ReverseProxy

About

Reverse HTTP Proxy written in Go

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 85.7%Language:Makefile 14.3%