summaryrefslogtreecommitdiff
path: root/cli/http_util.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-02-28 13:15:31 -0500
committerGitHub <noreply@github.com>2020-02-28 13:15:31 -0500
commit0099c28db35a63678e04b31434d38db52a11c3a5 (patch)
tree387007b728fe9a32dad26b043998f25e0577c00f /cli/http_util.rs
parentbc7dbfafff7f73dc78f230c36c947669e9c7935c (diff)
http_cache: change .headers.json to .metadata.json (#4175)
Add original URL to metadata. This is so the VS Code Plugin can reverse look up the URL for cache entries. Ref #4069.
Diffstat (limited to 'cli/http_util.rs')
-rw-r--r--cli/http_util.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/http_util.rs b/cli/http_util.rs
index 34140402d..05074fa4d 100644
--- a/cli/http_util.rs
+++ b/cli/http_util.rs
@@ -79,6 +79,9 @@ fn resolve_url_from_location(base_url: &Url, location: &str) -> Url {
}
}
+// TODO(ry) HTTP headers are not unique key, value pairs. There may be more than
+// one header line with the same key. This should be changed to something like
+// Vec<(String, String)>
pub type HeadersMap = HashMap<String, String>;
#[derive(Debug, PartialEq)]