Introduce a BaseClient for construction of canonical configured client (#2431)

In preparation for support of
https://github.com/astral-sh/uv/issues/2357 (see
https://github.com/astral-sh/uv/pull/2434)
This commit is contained in:
Zanie Blue 2024-03-15 12:07:38 -05:00 committed by GitHub
parent 8463d6d672
commit 9c27f92203
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 240 additions and 115 deletions

View file

@ -460,8 +460,7 @@ impl<'a, Context: BuildContext + Send + Sync> DistributionDatabase<'a, Context>
let req = self
.client
.cached_client()
.uncached()
.uncached_client()
.get(url)
.header(
// `reqwest` defaults to accepting compressed responses.
@ -542,8 +541,7 @@ impl<'a, Context: BuildContext + Send + Sync> DistributionDatabase<'a, Context>
let req = self
.client
.cached_client()
.uncached()
.uncached_client()
.get(url)
.header(
// `reqwest` defaults to accepting compressed responses.