Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnforceContentType ¶
func EnforceContentType(ctype ContentType) echo.MiddlewareFunc
EncforceContentType is a middleware function that will reject requests which do not include the specified content type header.
func LogRequestID ¶
func LogRequestID() echo.MiddlewareFunc
LogRequestID includes the request ID in all logs for the given request. This requires that the middleware that includes the request ID be executed before this middleware func.
Types ¶
type ContentType ¶
type ContentType string
ContentType is a type alias for a string.
const ( // JSON represents the application/json content type. JSON ContentType = "application/json" )
Click to show internal directories.
Click to hide internal directories.