Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrUnsupportedMediaType = echo.ErrUnsupportedMediaType ErrNotFound = echo.ErrNotFound ErrForbidden = echo.ErrForbidden ErrMethodNotAllowed = echo.ErrMethodNotAllowed ErrStatusRequestEntityTooLarge = echo.ErrStatusRequestEntityTooLarge ErrValidatorNotRegistered = echo.ErrValidatorNotRegistered ErrRendererNotRegistered = echo.ErrRendererNotRegistered ErrInvalidRedirectCode = echo.ErrInvalidRedirectCode ErrCookieNotFound = echo.ErrCookieNotFound )
Errors
var ( // NewHTTPError creates a new HTTPError instance. NewHTTPError = echo.NewHTTPError )
Functions ¶
func StartServer ¶
StartServer HTTP with custom address.
Types ¶
type BasicAuthValidator ¶ added in v1.6.6
type BasicAuthValidator = middleware.BasicAuthValidator
BasicAuthValidator defines a function to validate BasicAuth credentials.
type HandlerFunc ¶ added in v1.6.6
type HandlerFunc = echo.HandlerFunc
HandlerFunc from echo.HandlerFunc (for shadowing)
type MiddlewareFunc ¶ added in v1.6.6
type MiddlewareFunc = echo.MiddlewareFunc
MiddlewareFunc from echo.MiddlewareFunc (for shadowing)
func AddTrailingSlash ¶ added in v1.6.6
func AddTrailingSlash() MiddlewareFunc
AddTrailingSlash returns a root level (before router) middleware which adds a trailing slash to the request `URL#Path`.
Usage `Engine#Pre(AddTrailingSlash())`
func BasicAuth ¶ added in v1.6.6
func BasicAuth(fn BasicAuthValidator) MiddlewareFunc
BasicAuth returns an BasicAuth middleware.
For valid credentials it calls the next handler. For missing or invalid credentials, it sends "401 - Unauthorized" response.
func RemoveTrailingSlash ¶ added in v1.6.6
func RemoveTrailingSlash() MiddlewareFunc
RemoveTrailingSlash returns a root level (before router) middleware which removes a trailing slash from the request URI.
Usage `Engine#Pre(RemoveTrailingSlash())`