MCPcopy
hub / github.com/perkeep/perkeep / wantsBlobInfo

Function wantsBlobInfo

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

Source from the content-addressed store, hash-verified

409}
410
411func wantsBlobInfo(req *http.Request) bool {
412 return httputil.IsGet(req) && blob.ValidRefString(req.FormValue("b"))
413}
414
415func getSuffixMatches(req *http.Request, pattern *regexp.Regexp) bool {
416 if httputil.IsGet(req) {

Callers 1

ServeHTTPMethod · 0.85

Calls 2

IsGetFunction · 0.92
ValidRefStringFunction · 0.92

Tested by

no test coverage detected