MCPcopy Create free account
hub / github.com/cloudwan/gohan / addOptionsRoute

Method addOptionsRoute

server/server.go:128–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126}
127
128func (server *Server) addOptionsRoute() {
129 server.martini.AddRoute("OPTIONS", ".*", func(w http.ResponseWriter, r *http.Request) {
130 w.WriteHeader(http.StatusOK)
131 })
132}
133
134func (server *Server) addPprofRoutes() {
135 server.martini.Group("/debug/pprof", func(r martini.Router) {

Callers 2

resetRouterMethod · 0.95
NewServerFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected