feat: async pulls (#711)

Signed-off-by: Adam Martin <adam.martin@ranchergovernment.com>
This commit is contained in:
Adam Martin
2026-08-05 16:34:41 -04:00
committed by GitHub
parent 10a1af089c
commit 612473e08a
67 changed files with 13386 additions and 797 deletions
+5 -1
View File
@@ -46,7 +46,11 @@ func (h Http) Name(u *url.URL) string {
}
func (h Http) Open(ctx context.Context, u *url.URL) (io.ReadCloser, error) {
resp, err := http.Get(u.String())
req, err := http.NewRequestWithContext(ctx, http.MethodGet, u.String(), nil)
if err != nil {
return nil, err
}
resp, err := http.DefaultClient.Do(req)
if err != nil {
return nil, err
}