Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CORSServer ¶
type CORSServer struct {
// contains filtered or unexported fields
}
func WrapHandler ¶
func WrapHandler(h http.Handler, opts Options) *CORSServer
func (*CORSServer) HandlePreflight ¶
func (cs *CORSServer) HandlePreflight(w http.ResponseWriter, r *http.Request)
func (*CORSServer) ServeHTTP ¶
func (cs *CORSServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*CORSServer) WriteControlHeaders ¶
func (cs *CORSServer) WriteControlHeaders(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.