DefaultMethodNotAllowedHandler default exception handler
(ctx Context)
| 698 | |
| 699 | // DefaultMethodNotAllowedHandler default exception handler |
| 700 | func DefaultMethodNotAllowedHandler(ctx Context) { |
| 701 | ctx.Response().Header().Set(HeaderContentType, CharsetUTF8) |
| 702 | ctx.WriteStringC(http.StatusMethodNotAllowed, http.StatusText(http.StatusMethodNotAllowed)) |
| 703 | } |
| 704 | |
| 705 | // DefaultAutoOPTIONSHandler default handler for options request |
| 706 | // if set HttpServer.EnabledAutoOPTIONS, auto bind this handler |
nothing calls this directly
no test coverage detected