MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / allowed

Function allowed

dgraph/cmd/alpha/http.go:38–40  ·  view source on GitHub ↗
(method string)

Source from the content-addressed store, hash-verified

36)
37
38func allowed(method string) bool {
39 return method == http.MethodPost || method == http.MethodPut
40}
41
42// Common functionality for these request handlers. Returns true if the request is completely
43// handled here and nothing further needs to be done.

Callers 1

commonHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected