MCPcopy Index your code
hub / github.com/tailscale/tailscale / handle

Method handle

tsweb/debug.go:101–105  ·  view source on GitHub ↗
(slug string, handler http.Handler)

Source from the content-addressed store, hash-verified

99}
100
101func (d *DebugHandler) handle(slug string, handler http.Handler) string {
102 href := "/debug/" + slug
103 d.mux.Handle(href, Protected(debugBrowserHeaderHandler(handler)))
104 return href
105}
106
107// Handle registers handler at /debug/<slug> and adds a link to it
108// on /debug/ with the provided description.

Callers 2

HandleMethod · 0.95
HandleSilentMethod · 0.95

Calls 3

ProtectedFunction · 0.85
HandleMethod · 0.65

Tested by

no test coverage detected