httpppc

package module
v0.0.0-...-10fe3bf Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 7 Imported by: 0

README

httpppc

HTTP Proxy Protocol Client.

This is just a thin wrapper around https://github.com/pires/go-proxyproto to create an http.RoundTripper, to use as a http.Client Transport.

For a full example of creating a Proxy Protocol http.Client, see httpppc_test.go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(clientIP net.IP, clientPort int, tr *http.Transport) http.RoundTripper

New returns a new HTTP Proxy Protocol RoundTripper. The transport tr is the base transport to wrap and add Proxy Protocol to new connections. The transport tr may be nil, in which case the http.DefaultTransport is used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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