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

Function HTTPHandlerWithMethod

wrapper.go:12–23  ·  view source on GitHub ↗

HTTPHandlerWithMethod only allows the given method to a handler, else returning an http.StatusMethodNotAllowed status code as well as an error

(method string, h http.HandlerFunc)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

PostFunction · 0.85
GetFunction · 0.85
PatchFunction · 0.85
DeleteFunction · 0.85
PutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected