summaryrefslogtreecommitdiff
path: root/cli/http_cache.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-11-18 17:28:14 -0500
committerGitHub <noreply@github.com>2022-11-18 17:28:14 -0500
commit763d492ed69c3a22310dd5c758995fbbbf3e06b8 (patch)
treeda78f6e3ed7cc38924a73c2118b5824bcdb60e69 /cli/http_cache.rs
parent6962808f4b6bfa18312820f710bc57c17980531d (diff)
fix(npm): use an http client with connection pool (#16705)
Should make downloading npm packages faster and more reliable.
Diffstat (limited to 'cli/http_cache.rs')
-rw-r--r--cli/http_cache.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/http_cache.rs b/cli/http_cache.rs
index f70ccc715..6cda9f279 100644
--- a/cli/http_cache.rs
+++ b/cli/http_cache.rs
@@ -73,11 +73,6 @@ pub fn url_to_filename(url: &Url) -> Option<PathBuf> {
Some(cache_filename)
}
-#[derive(Debug, Clone, Default)]
-pub struct HttpCache {
- pub location: PathBuf,
-}
-
#[derive(Serialize, Deserialize)]
pub struct Metadata {
pub headers: HeadersMap,
@@ -107,6 +102,11 @@ impl Metadata {
}
}
+#[derive(Debug, Clone, Default)]
+pub struct HttpCache {
+ pub location: PathBuf,
+}
+
impl HttpCache {
/// Returns a new instance.
///