MCPcopy
hub / github.com/perkeep/perkeep / FromHTTP

Method FromHTTP

pkg/search/query.go:134–137  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

132func (q *SearchQuery) URLSuffix() string { return "camli/search/query" }
133
134func (q *SearchQuery) FromHTTP(req *http.Request) error {
135 dec := json.NewDecoder(io.LimitReader(req.Body, 1<<20))
136 return dec.Decode(q)
137}
138
139// exprQuery optionally specifies the *SearchQuery prototype that was generated
140// by parsing the search expression

Callers 3

serveQueryMethod · 0.95
handleSearchMethod · 0.95
handleMasterQueryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected