Documentation ¶
Index ¶
- type Handler
- func (h *Handler) BadRequestHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ForbiddenHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) InternalServerErrorHandler(w http.ResponseWriter, r *http.Request, err error)
- func (h *Handler) MethodNotAllowedHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) NoContentHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) NotFoundHandler(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SeeOtherHandler(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct{}
func NewErrorHandler ¶
func NewErrorHandler() *Handler
func (*Handler) BadRequestHandler ¶
func (h *Handler) BadRequestHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) ForbiddenHandler ¶
func (h *Handler) ForbiddenHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) InternalServerErrorHandler ¶
func (*Handler) MethodNotAllowedHandler ¶
func (h *Handler) MethodNotAllowedHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) NoContentHandler ¶
func (h *Handler) NoContentHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) NotFoundHandler ¶
func (h *Handler) NotFoundHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) SeeOtherHandler ¶
func (h *Handler) SeeOtherHandler(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.