MCPcopy Create free account
hub / github.com/devfeel/dotweb / SetMethodNotAllowedHandle

Method SetMethodNotAllowedHandle

dotweb.go:293–295  ·  view source on GitHub ↗

SetMethodNotAllowedHandle set custom 405 handler

(handler StandardHandle)

Source from the content-addressed store, hash-verified

291
292// SetMethodNotAllowedHandle set custom 405 handler
293func (app *DotWeb) SetMethodNotAllowedHandle(handler StandardHandle) {
294 app.MethodNotAllowedHandler = handler
295}
296
297// SetPProfConfig set pprofserver config, default is disable
298// and don't use same port with StartServer

Callers 2

initServerEnvironmentMethod · 0.95
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected