http_proxy

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

http-proxy

Simple Http Proxy Server Supporting Authentication.

Usage

By Docker
docker run -d \
  -p 8080:8080 \
  -e HTTP_PROXY_SERVER_HOST=127.0.0.1:8080 \
  -e HTTP_PROXY_USERNAME=foo \
  -e HTTP_PROXY_PASSWORD=bar \
  ghcr.io/chyroc/http-proxy-cli:0.1.0
By Binary
go install github.com/chyroc/http-proxy/http-proxy-cli@latest

export HTTP_PROXY_SERVER_HOST=127.0.0.1:8080
export HTTP_PROXY_USERNAME=foo
export HTTP_PROXY_PASSWORD=bar

http-proxy-cli

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPProxy

func NewHTTPProxy(config *Config) http.Handler

Types

type Config

type Config struct {
	AuthChecker func(username, password string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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