split main

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-04-03 20:33:47 -07:00 committed by June
parent 7f6c19f066
commit 9cc4f3e929
7 changed files with 1031 additions and 966 deletions

View file

@ -118,12 +118,12 @@ impl Client {
#[cfg(not(feature = "gzip_compression"))]
{
builder = builder.no_gzip();
}
};
#[cfg(not(feature = "brotli_compression"))]
{
builder = builder.no_brotli();
}
};
if let Some(proxy) = config.proxy.to_proxy()? {
Ok(builder.proxy(proxy))