Discover Packages
github.com/rob05c/httpppc
package
module
Version:
v0.0.0-...-10fe3bf
Opens a new window with list of versions in this module.
Published: Oct 23, 2023
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
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.
Expand ▾
Collapse ▴
Documentation
¶
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.