proxy

package
v0.3.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: Apache-2.0 Imports: 12 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"
	AppsProxyPrefix        = "/proxy/apps"
	VectorDBProxyPrefix    = "/proxy/vectorDB"
)

Variables

This section is empty.

Functions

func GetLastExistValue

func GetLastExistValue(values ...string) string

Types

type ModelsHandler added in v0.3.0

type ModelsHandler struct {
	Scheme string
	Host   string
}

ModelsHandler proxies requests to the url

func NewModelsHandler added in v0.3.0

func NewModelsHandler() *ModelsHandler

func (*ModelsHandler) ServeHTTP added in v0.3.0

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

type ProxyHandler added in v0.3.0

type ProxyHandler struct{}

ProxyHandler proxies requests to backend services based on request path

func NewProxyHandler added in v0.3.0

func NewProxyHandler() *ProxyHandler

func (*ProxyHandler) ServeHTTP added in v0.3.0

func (h *ProxyHandler) 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