Skip to content

go-zoox/http-proxy

Repository files navigation

HTTP Proxy - Light HTTP Proxy Server

PkgGoDev Build Status Go Report Card Coverage Status GitHub issues Release

Installation

To install the package, run:

go get -u github.com/go-zoox/http-proxy

Quick Start

package main

import (
	"fmt"
	"net/http"

	"github.com/go-zoox/http-proxy"
)

func main() {
	fmt.Println("Starting proxy at http://127.0.0.1:1080 ...")

	http.ListenAndServe(":1080", httpproxy.New())
}

// curl --proxy http://127.0.0.1:1080 http://httpbin.org

Inspiration

License

GoZoox is released under the MIT License.