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))
| 115 | // The pattern MUST start with "/dyn/" to be valid. This allows registration of dynamic |
| 116 | // routes that can be handled at runtime. |
| 117 | func 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. |
| 122 | func RunMain() { |
nothing calls this directly
no test coverage detected