httpproxy

package module
v0.0.0-...-570c1a9 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: GPL-2.0, GPL-3.0, LGPL-3.0 Imports: 11 Imported by: 0

README

HTTP Proxy Module for Caddy

Only method CONNECT.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Users []string
	// contains filtered or unexported fields
}

Handler implements an HTTP handler that ...

func (Handler) CaddyModule

func (Handler) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*Handler) Provision

func (m *Handler) Provision(ctx caddy.Context) (err error)

Provision implements caddy.Provisioner.

func (*Handler) ProxyConn

func (m *Handler) ProxyConn(conn net.Conn, addr string) error

func (*Handler) ServeHTTP

func (m *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error

ServeHTTP implements caddyhttp.MiddlewareHandler.

func (*Handler) ServeProxy

func (m *Handler) ServeProxy(w http.ResponseWriter, r *http.Request) (err error)

Jump to

Keyboard shortcuts

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