mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
Enable bbr and early data for http3
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
780aa4f1d8
commit
eecb0bd332
1 changed files with 7 additions and 0 deletions
|
@ -142,6 +142,13 @@ impl Client {
|
|||
for certificate in certificates {
|
||||
builder = builder.add_root_certificate(certificate.0);
|
||||
}
|
||||
|
||||
builder.tls_early_data(true);
|
||||
}
|
||||
|
||||
#[cfg(all(reqwest_unstable, feature = "http3"))]
|
||||
{
|
||||
builder.http3_congestion_bbr();
|
||||
}
|
||||
|
||||
builder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue