proxy

package
v0.0.2-pre Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ForwardedAPIHostHeader = "X-API-Host"
	ForwardedProtoHeader   = "X-Forwarded-Proto"
	ForwardedHostHeader    = "X-Forwarded-Host"
	PrefixHeader           = "X-API-URL-Prefix"
	OriginHeader           = "Origin"
)

Variables

This section is empty.

Functions

func GetLastExistValue

func GetLastExistValue(values ...string) string

func GetOriginScheme

func GetOriginScheme(scheme string) string

Types

type Handler

type Handler struct {
	Scheme string
	Host   string
}

Handler proxies requests to the rancher service

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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