MCPcopy
hub / github.com/tailscale/tailscale / Handle

Method Handle

tsweb/debug.go:109–112  ·  view source on GitHub ↗

Handle registers handler at /debug/ and adds a link to it on /debug/ with the provided description.

(slug, desc string, handler http.Handler)

Source from the content-addressed store, hash-verified

107// Handle registers handler at /debug/<slug> and adds a link to it
108// on /debug/ with the provided description.
109func (d *DebugHandler) Handle(slug, desc string, handler http.Handler) {
110 href := d.handle(slug, handler)
111 d.URL(href, desc)
112}
113
114// Handle registers handler at /debug/<slug> and adds a link to it
115// on /debug/ with the provided description.

Callers 2

DebuggerFunction · 0.95
HandleFuncMethod · 0.95

Calls 2

handleMethod · 0.95
URLMethod · 0.95

Tested by

no test coverage detected