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

Method OPTIONS

group.go:96–98  ·  view source on GitHub ↗

OPTIONS implements `Router#OPTIONS()` for sub-routes within the Group.

(path string, h HttpHandle)

Source from the content-addressed store, hash-verified

94
95// OPTIONS implements `Router#OPTIONS()` for sub-routes within the Group.
96func (g *xGroup) OPTIONS(path string, h HttpHandle) RouterNode {
97 return g.add(RouteMethod_OPTIONS, path, h)
98}
99
100// PATCH implements `Router#PATCH()` for sub-routes within the Group.
101func (g *xGroup) PATCH(path string, h HttpHandle) RouterNode {

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected