perRequest will create a new request to a peer.
(peer string, start, end int64)
| 262 | |
| 263 | // perRequest will create a new request to a peer. |
| 264 | func (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. |
| 269 | func (r *reader) remoteRequest(u string, start, end int64) (*http.Request, error) { |