proxy

package
v0.2.639 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(bind string, port int, target *url.URL) *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