mirror of
https://github.com/labstack/echo.git
synced 2025-11-27 22:38:25 +02:00
Signed-off-by: Vishal Rana <vr@labstack.com> Fixed broken links in website Signed-off-by: Vishal Rana <vr@labstack.com>
710 B
710 B
title, menu
| title | menu | ||||||
|---|---|---|---|---|---|---|---|
| Customization |
|
HTTP error handler
Echo.SetHTTPErrorHandler(h HTTPErrorHandler)
Registers a custom Echo.HTTPErrorHandler.
Default handler rules:
- If error is of type
Echo.HTTPErrorit sends HTTP response with status codeHTTPError.Codeand messageHTTPError.Message. - Else it sends
500 - Internal Server Error. - If debug mode is enabled, it uses
error.Error()as status message.
Debug
Echo.SetDebug(on bool)
Enables/disables debug mode.
Disable colored log
Echo.DisableColoredLog()
StripTrailingSlash
StripTrailingSlash enables removing trailing slash from the request path.
e.StripTrailingSlash()