proxy

package
v0.0.0-...-34ba797 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2015 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoRedirects = fmt.Errorf("No redirects")

Used to stop following redirects with the default http.Client

Functions

This section is empty.

Types

type Handler

type Handler struct {
}

Handler is the type resposible for implementing the RequestHandler interface in this proxy module.

func New

func New() *Handler

New creates and returns a ready to used Handler.

func (*Handler) RequestHandle

func (ph *Handler) RequestHandle(ctx context.Context,
	writer http.ResponseWriter, req *http.Request, vh *types.VirtualHost)

RequestHandle is the main serving function

Jump to

Keyboard shortcuts

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