Help us shape the future of Go! Take the 2026 Go Developer Survey

proxy

package
v0.3.1100 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 19 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBodyNotFound = fmt.Errorf("body not found")

Functions

func NotifyProxy

func NotifyProxy(host string, port int) error

Types

type Handler

type Handler struct {
	URL    string
	Target *url.URL
	// contains filtered or unexported fields
}

func New

func New(log *slog.Logger, scheme string, bind string, port int, target *url.URL) (h *Handler)

func (*Handler) SendSSE

func (p *Handler) SendSSE(eventType string, data string)

func (*Handler) ServeHTTP

func (p *Handler) 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