mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-26 18:06:45 +00:00
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:
parent
8463d6d672
commit
9c27f92203
9 changed files with 240 additions and 115 deletions
|
|
@ -304,8 +304,7 @@ impl<'a, T: BuildContext> SourceDistCachedBuilder<'a, T> {
|
|||
};
|
||||
let req = self
|
||||
.client
|
||||
.cached_client()
|
||||
.uncached()
|
||||
.uncached_client()
|
||||
.get(url.clone())
|
||||
.header(
|
||||
// `reqwest` defaults to accepting compressed responses.
|
||||
|
|
@ -414,8 +413,7 @@ impl<'a, T: BuildContext> SourceDistCachedBuilder<'a, T> {
|
|||
};
|
||||
let req = self
|
||||
.client
|
||||
.cached_client()
|
||||
.uncached()
|
||||
.uncached_client()
|
||||
.get(url.clone())
|
||||
.header(
|
||||
// `reqwest` defaults to accepting compressed responses.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue