MCPcopy
hub / github.com/perkeep/perkeep / IsGet

Function IsGet

internal/httputil/httputil.go:37–39  ·  view source on GitHub ↗

IsGet reports whether r.Method is a GET or HEAD request.

(r *http.Request)

Source from the content-addressed store, hash-verified

35
36// IsGet reports whether r.Method is a GET or HEAD request.
37func IsGet(r *http.Request) bool {
38 return r.Method == "GET" || r.Method == "HEAD"
39}
40
41func ErrorRouting(rw http.ResponseWriter, req *http.Request) {
42 http.Error(rw, "Handlers wired up wrong; this path shouldn't be hit", 500)

Callers 13

ServeHTTPMethod · 0.92
fromHTTPMethod · 0.92
ServeHTTPMethod · 0.92
ServeHTTPMethod · 0.92
handleGetViaSharingMethod · 0.92
ServeHTTPMethod · 0.92
wantsDiscoveryFunction · 0.92
wantsPermanodeFunction · 0.92
wantsBlobInfoFunction · 0.92
getSuffixMatchesFunction · 0.92
serveRefFunction · 0.92
ServeHTTPMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected