MCPcopy Create free account
hub / github.com/Azure/peerd / originRequest

Method originRequest

pkg/discovery/content/reader/reader.go:259–261  ·  view source on GitHub ↗

originRequest will create a new request to origin.

(start, end int64)

Source from the content-addressed store, hash-verified

257
258// originRequest will create a new request to origin.
259func (r *reader) originRequest(start, end int64) (*http.Request, error) {
260 return r.remoteRequest(r.context.GetString(pcontext.BlobUrlCtxKey), start, end)
261}
262
263// perRequest will create a new request to a peer.
264func (r *reader) peerRequest(peer string, start, end int64) (*http.Request, error) {

Callers 2

PreadRemoteMethod · 0.95
FstatRemoteMethod · 0.95

Calls 1

remoteRequestMethod · 0.95

Tested by

no test coverage detected