proxy

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowedReadOnlyPath

func AllowedReadOnlyPath(rawPath string) bool

func ReadyCheck

func ReadyCheck(upstream *url.URL) func(context.Context) error

Types

type Proxy

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

func New

func New(upstream *url.URL) *Proxy

func NewWithClient

func NewWithClient(upstream *url.URL, client *http.Client) *Proxy

func (*Proxy) ServeHTTP

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

Jump to

Keyboard shortcuts

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