Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MiddlewareChain ¶ added in v5.1.1
func MiddlewareChain(h http.Handler, mw []Middleware) http.Handler
func NormalizeQueryValues ¶
NormalizeQueryValues replaces comma-separated values with individual values
Types ¶
type Middleware ¶ added in v5.1.1
func AcceptHeaderHandler ¶
func AcceptHeaderHandler(serverAcceptedTypes []string) Middleware
AcceptHeaderHandler checks if the client's response preference is handled
func ContentTypeHandler ¶
func ContentTypeHandler(acceptedMediaTypes []string) Middleware
ContentTypeHandler checks request for the appropriate media types otherwise returning a http.StatusUnsupportedMediaType error
func CorsHandler ¶
func CorsHandler(allowOrigins []string) Middleware
CorsHandler sets the cors settings on api endpoints
Click to show internal directories.
Click to hide internal directories.