Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CORSHandler ¶
func (*CORSHandler) ServeHTTP ¶
func (h *CORSHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
ServeHTTP adds the correct CORS headers based on the origin and returns immediately with a 200 OK if the method is OPTIONS.
type CORSInfo ¶
func NewCORSInfo ¶
func (CORSInfo) OriginAllowed ¶
OriginAllowed determines whether the server will allow a given CORS origin.
type LowerQueryParamsHandler ¶
func NewLowerQueryParamsHandler ¶
func NewLowerQueryParamsHandler(hdlr http.Handler) *LowerQueryParamsHandler
func (*LowerQueryParamsHandler) ServeHTTP ¶
func (h *LowerQueryParamsHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.