http_proxy

package
v0.0.0-...-8ac4b46 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForwardHTTP

func ForwardHTTP(c *ugate.MeshCluster, w http.ResponseWriter, r *http.Request, pathH string) error

Types

type HttpProxy

type HttpProxy struct {
	// contains filtered or unexported fields
}

HttpProxy handles HTTP PROXY and plain text HTTP requests (primarily on port 80) for egress side.

A DNAT or explicit proxy are sufficient - no need for TPROXY or REDIRECT, host is extracted from request and sessions should use cookies.

func NewHTTPProxy

func NewHTTPProxy(gw *ugate.UGate) *HttpProxy

func (*HttpProxy) HttpProxyCapture

func (gw *HttpProxy) HttpProxyCapture(addr string) error

RoundTripStart listening on the addr, as a HTTP_PROXY Handles CONNECT and PROXY requests using the gateway for streams.

Jump to

Keyboard shortcuts

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