MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / HandleDynFunc

Function HandleDynFunc

tsunami/app/defaultclient.go:117–119  ·  view source on GitHub ↗

HandleDynFunc registers a dynamic HTTP handler function with the internal http.ServeMux. The pattern MUST start with "/dyn/" to be valid. This allows registration of dynamic routes that can be handled at runtime.

(pattern string, fn func(http.ResponseWriter, *http.Request))

Source from the content-addressed store, hash-verified

115// The pattern MUST start with "/dyn/" to be valid. This allows registration of dynamic
116// routes that can be handled at runtime.
117func HandleDynFunc(pattern string, fn func(http.ResponseWriter, *http.Request)) {
118 engine.GetDefaultClient().HandleDynFunc(pattern, fn)
119}
120
121// RunMain is used internally by generated code and should not be called directly.
122func RunMain() {

Callers

nothing calls this directly

Calls 2

GetDefaultClientFunction · 0.92
HandleDynFuncMethod · 0.80

Tested by

no test coverage detected