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

Method peerRequest

pkg/discovery/content/reader/reader.go:264–266  ·  view source on GitHub ↗

perRequest will create a new request to a peer.

(peer string, start, end int64)

Source from the content-addressed store, hash-verified

262
263// perRequest will create a new request to a peer.
264func (r *reader) peerRequest(peer string, start, end int64) (*http.Request, error) {
265 return r.remoteRequest(fmt.Sprintf("%v/blobs/%v", peer, r.context.GetString(pcontext.BlobUrlCtxKey)), start, end)
266}
267
268// remoteRequest creates a new HTTP request to a remote server.
269func (r *reader) remoteRequest(u string, start, end int64) (*http.Request, error) {

Callers 1

doP2pMethod · 0.95

Calls 1

remoteRequestMethod · 0.95

Tested by

no test coverage detected