MCPcopy Create free account
hub / github.com/cdipaolo/hub-db / HTTPHandlerWithMethod

Function HTTPHandlerWithMethod

wrapper.go:11–22  ·  view source on GitHub ↗

HTTPHandlerWithMethod takes in a handler func and wraps it so only requests with the specified method (POST, GET, etc) will go through to the handler.

(method string, h http.HandlerFunc)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

GetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected