Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIMiddleware ¶
type APIMiddleware struct {
// contains filtered or unexported fields
}
APIMiddleware adds some headers (CORS, Content-Type...)
func NewAPIMiddleware ¶
func NewAPIMiddleware(handler http.Handler) *APIMiddleware
NewAPIMiddleware create a new API middleware
func (*APIMiddleware) ServeHTTP ¶
func (m *APIMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.