handlers

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Forward

func Forward(
	w http.ResponseWriter,
	r *http.Request,
	upstreamURL string,
	client *httpclient.Client,
	modify func(body []byte, resp *http.Response, jsonHandler *JSONHandler) error,
	recovery func(w http.ResponseWriter, err error) error,
	upstreamCache httpclient.UpstreamCache,
)

func NotImplemented

func NotImplemented(w http.ResponseWriter, r *http.Request)

func RegisterProfilingHandlers

func RegisterProfilingHandlers(handler *http.ServeMux, prefix string)

Types

type JSONHandler added in v0.0.10

type JSONHandler struct {
	Buffer  *bytes.Buffer
	Decoder *json.Decoder
	Encoder *json.Encoder
}

func NewJSONHandler added in v0.0.19

func NewJSONHandler() *JSONHandler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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