proxy

package
v0.0.0-...-07c5cce Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripPrefix

func StripPrefix(prefix string, proxy *Proxy) http.Handler

Types

type Proxy

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

func New

func New(api *api.API) *Proxy

Create new reverse proxy using API definition

func (*Proxy) ServeHTTP

func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

Add header to enable CORS if allow_cross_origin is set to true

Jump to

Keyboard shortcuts

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