MCPcopy
hub / github.com/perkeep/perkeep / wantsBlobRef

Function wantsBlobRef

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

Source from the content-addressed store, hash-verified

390}
391
392func wantsBlobRef(req *http.Request) bool {
393 _, ok := blob.ParseKnown(httputil.PathSuffix(req))
394 return ok
395}
396
397func wantsDiscovery(req *http.Request) bool {
398 return httputil.IsGet(req) &&

Callers 1

ServeHTTPMethod · 0.85

Calls 2

ParseKnownFunction · 0.92
PathSuffixFunction · 0.92

Tested by

no test coverage detected