MCPcopy
hub / github.com/perkeep/perkeep / fromHTTP

Method fromHTTP

pkg/search/handler.go:414–416  ·  view source on GitHub ↗

fromHTTP panics with an httputil value on failure

(req *http.Request)

Source from the content-addressed store, hash-verified

412
413// fromHTTP panics with an httputil value on failure
414func (r *EdgesRequest) fromHTTP(req *http.Request) {
415 r.ToRef = httputil.MustGetBlobRef(req, "blobref")
416}
417
418// TODO(mpl): it looks like we never populate RecentResponse.Error*, shouldn't we remove them?
419// Same for WithAttrResponse. I suppose it doesn't matter much if we end up removing GetRecentPermanodes anyway...

Callers 1

serveEdgesToMethod · 0.95

Calls 1

MustGetBlobRefFunction · 0.92

Tested by

no test coverage detected