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

@ -52,8 +52,7 @@ async fn test_client_with_netrc_credentials() -> Result<()> {
// Send request to our dummy server
let res = client
.cached_client()
.uncached()
.uncached_client()
.get(format!("http://{addr}"))
.send()
.await?;

View file

@ -44,8 +44,7 @@ async fn test_user_agent_has_version() -> Result<()> {
// Send request to our dummy server
let res = client
.cached_client()
.uncached()
.uncached_client()
.get(format!("http://{addr}"))
.send()
.await?;