proxy

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServeMux added in v0.7.0

func NewServeMux(logger log.Logger, cfg *config.Config) *http.ServeMux

NewServeMux returns an http.ServeMux preconfigured with a lokxy handlers.

This function is typically used to mount a dedicated metrics server or to integrate metrics into an existing HTTP server.

Types

type CustomRoundTripper

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

CustomRoundTripper intercepts the request and response

func (*CustomRoundTripper) RoundTrip

func (c *CustomRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip method allows us to inspect and modify requests/responses

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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