QueryRaw sends req and returns the body of the response, which should be the unparsed JSON of a search.SearchResult.
(ctx context.Context, req *search.SearchQuery)
| 791 | // QueryRaw sends req and returns the body of the response, which should be the |
| 792 | // unparsed JSON of a search.SearchResult. |
| 793 | func (c *Client) QueryRaw(ctx context.Context, req *search.SearchQuery) ([]byte, error) { |
| 794 | hres, err := c.query(ctx, req) |
| 795 | if err != nil { |
| 796 | return nil, err |
| 797 | } |
| 798 | defer hres.Body.Close() |
| 799 | return io.ReadAll(hres.Body) |
| 800 | } |
| 801 | |
| 802 | // SearchExistingFileSchema does a search query looking for an |
| 803 | // existing file with entire contents of wholeRef, then does a HEAD |