proxy

package
v0.1.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: Apache-2.0 Imports: 8 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"
	LocalLLMApiPrefix      = "/local_llm_api/v1"
)

Variables

This section is empty.

Functions

func GetLastExistValue

func GetLastExistValue(values ...string) string

Types

type Handler

type Handler struct {
	Scheme string
	Host   string
}

Handler proxies requests to the rancher service

func NewHandler

func NewHandler() *Handler

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