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

Function DefaultNotFoundHandler

dotweb.go:694–697  ·  view source on GitHub ↗

DefaultNotFoundHandler default exception handler

(ctx Context)

Source from the content-addressed store, hash-verified

692
693// DefaultNotFoundHandler default exception handler
694func DefaultNotFoundHandler(ctx Context) {
695 ctx.Response().Header().Set(HeaderContentType, CharsetUTF8)
696 ctx.WriteStringC(http.StatusNotFound, http.StatusText(http.StatusNotFound))
697}
698
699// DefaultMethodNotAllowedHandler default exception handler
700func DefaultMethodNotAllowedHandler(ctx Context) {

Callers

nothing calls this directly

Calls 4

SetMethod · 0.65
ResponseMethod · 0.65
WriteStringCMethod · 0.65
HeaderMethod · 0.45

Tested by

no test coverage detected