MCPcopy Create free account
hub / github.com/devfeel/dotweb / Any

Method Any

server.go:316–318  ·  view source on GitHub ↗

ANY is a shortcut for router.Handle("Any", path, handle) it support GET\HEAD\POST\PUT\PATCH\OPTIONS\DELETE

(path string, handle HttpHandle)

Source from the content-addressed store, hash-verified

314// ANY is a shortcut for router.Handle("Any", path, handle)
315// it support GET\HEAD\POST\PUT\PATCH\OPTIONS\DELETE
316func (server *HttpServer) Any(path string, handle HttpHandle) {
317 server.Router().Any(path, handle)
318}
319
320// HEAD is a shortcut for router.Handle("HEAD", path, handle)
321func (server *HttpServer) HEAD(path string, handle HttpHandle) RouterNode {

Callers

nothing calls this directly

Calls 2

RouterMethod · 0.95
AnyMethod · 0.65

Tested by

no test coverage detected