MCPcopy Index your code
hub / github.com/OpenListTeam/OpenList / HttpRequest

Method HttpRequest

internal/net/request_test.go:233–244  ·  view source on GitHub ↗
(ctx context.Context, params *HttpRequestParams)

Source from the content-addressed store, hash-verified

231}
232
233func (c *downloadCaptureClient) HttpRequest(ctx context.Context, params *HttpRequestParams) (*http.Response, error) {
234 c.lock.Lock()
235 defer c.lock.Unlock()
236
237 c.GetObjectInvocations++
238
239 if params.Range.Length != 0 {
240 c.RetrievedRanges = append(c.RetrievedRanges, fmt.Sprintf("%d-%d", params.Range.Start, params.Range.Length))
241 }
242
243 return c.mockedHttpRequest(params)
244}
245
246func newDownloadRangeClient(data []byte) (*downloadCaptureClient, *int, *[]string) {
247 capture := &downloadCaptureClient{}

Callers

nothing calls this directly

Calls 1

UnlockMethod · 0.65

Tested by

no test coverage detected