Categorygithub.com/sters/connectproxy
modulepackage
0.0.0-20230426031950-df71153667c9
Repository: https://github.com/sters/connectproxy.git
Documentation: pkg.go.dev

# README

ConnectProxy

Small Go library to use CONNECT-speaking proxies standalone or with the proxy library.

GoDoc

Please see the godoc for more details.

This library is written to make connecting through proxies easier. It unashamedly steals from https://gist.github.com/jim3ma/3750675f141669ac4702bc9deaf31c6b, but adds a nice and simple interface.

Domain Fronting

To make it easier to have a different SNI name and Host: header, a separate SNI name may be specified when registering the proxy. See the GeneratorWithConfig documentation for more details.

Examples

The godoc has a couple of examples. Also, in the examples directory there is an example program.

# Functions

NewWithConfig is like New, but allows control over various options.

# Variables

ErrNonOKResponse is returned if a response from proxy is not OK status.
ErrUnsupportedProxyScheme is returned if a scheme other than "http" or "https" is used.

# Structs

Config allows various parameters to be configured.