MCPcopy
hub / github.com/AdguardTeam/dnsproxy / Wrap

Method Wrap

proxy/middleware.go:6–6  ·  view source on GitHub ↗

Wrap returns a new handler that wraps the specified handler.

(handler Handler)

Source from the content-addressed store, hash-verified

4type Middleware interface {
5 // Wrap returns a new handler that wraps the specified handler.
6 Wrap(handler Handler) (wrapped Handler)
7}
8
9// MiddlewareFunc is a function that implements the [Middleware] interface.

Callers 3

TestMiddleware_WrapFunction · 0.95
createProxyConfigFunction · 0.65

Implementers 2

Defaultinternal/middleware/middleware.go
middlewareratelimit/ratelimit.go

Calls

no outgoing calls

Tested by 2

TestMiddleware_WrapFunction · 0.76