MCPcopy
hub / github.com/unkeyed/unkey / Handler

Struct Handler

pkg/pprof/handler.go:43–50  ·  view source on GitHub ↗

Handler handles pprof profiling endpoints

Source from the content-addressed store, hash-verified

41
42// Handler handles pprof profiling endpoints
43type Handler struct {
44 Username string
45 Password string
46 // Prefix is the path prefix before /pprof/{path...}.
47 // For example "/debug" results in "/debug/pprof/{path...}",
48 // "/_unkey/internal" results in "/_unkey/internal/pprof/{path...}".
49 Prefix string
50}
51
52// Method returns the HTTP method this route responds to
53func (h *Handler) Method() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected