| 231 | } |
| 232 | |
| 233 | func (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 | |
| 246 | func newDownloadRangeClient(data []byte) (*downloadCaptureClient, *int, *[]string) { |
| 247 | capture := &downloadCaptureClient{} |