proxy

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

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 added in v0.3.0

func GetLastExistValue(values ...string) string

func GetOriginScheme added in v0.3.0

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