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

Method SetNotFoundHandle

dotweb.go:288–290  ·  view source on GitHub ↗

SetNotFoundHandle set custom 404 handler

(handler StandardHandle)

Source from the content-addressed store, hash-verified

286
287// SetNotFoundHandle set custom 404 handler
288func (app *DotWeb) SetNotFoundHandle(handler StandardHandle) {
289 app.NotFoundHandler = handler
290}
291
292// SetMethodNotAllowedHandle set custom 405 handler
293func (app *DotWeb) SetMethodNotAllowedHandle(handler StandardHandle) {

Callers 1

initServerEnvironmentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected