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

Method OPTIONS

server.go:326–328  ·  view source on GitHub ↗

OPTIONS is a shortcut for router.Handle("OPTIONS", path, handle)

(path string, handle HttpHandle)

Source from the content-addressed store, hash-verified

324
325// OPTIONS is a shortcut for router.Handle("OPTIONS", path, handle)
326func (server *HttpServer) OPTIONS(path string, handle HttpHandle) RouterNode {
327 return server.Router().OPTIONS(path, handle)
328}
329
330// POST is a shortcut for router.Handle("POST", path, handle)
331func (server *HttpServer) POST(path string, handle HttpHandle) RouterNode {

Callers

nothing calls this directly

Calls 2

RouterMethod · 0.95
OPTIONSMethod · 0.65

Tested by

no test coverage detected