MCPcopy Index your code
hub / github.com/cph6/zsync / HTTPRequester

Interface HTTPRequester

target_fetch.go:27–29  ·  view source on GitHub ↗

* * SPDX-FileCopyrightText: 2004,2005,2007,2009,2025,2026 Colin Phipps * * SPDX-License-Identifier: Artistic-2.0 */ AI: parts from copilot / Raptor mini conversion of zsync's main.c, but with considerable simplifcation compared to the original client: no longer putting multipl

Source from the content-addressed store, hash-verified

25// Callers may provide an *http.Client directly (it implements Do) or a
26// wrapper that implements Do to provide authentication or headers.
27type HTTPRequester interface {
28 Do(req *http.Request) (*http.Response, error)
29}
30
31// FetchEvent represents the type of a progress event from FetchRemainingBlocks
32type FetchEvent int

Callers 3

fetchRangeMethod · 0.65
GetControlFileFunction · 0.65
DoMethod · 0.65

Implementers 2

fakeClientsyncer_test.go
Clientinternal/httpbasic/client.go

Calls

no outgoing calls

Tested by

no test coverage detected