MCPcopy
hub / github.com/perkeep/perkeep / wantsDiscovery

Function wantsDiscovery

pkg/server/ui.go:397–401  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

395}
396
397func wantsDiscovery(req *http.Request) bool {
398 return httputil.IsGet(req) &&
399 (req.Header.Get("Accept") == "text/x-camli-configuration" ||
400 camliMode(req) == "config")
401}
402
403func wantsUploadHelper(req *http.Request) bool {
404 return req.Method == "POST" && camliMode(req) == "uploadhelper"

Callers 2

ServeHTTPMethod · 0.85
ServeHTTPMethod · 0.85

Calls 3

IsGetFunction · 0.92
camliModeFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected