Skip to content

Commit b3feff6

Browse files
authored
Add http3 feature to blocking client (#2110)
Add public method http3_prior_knowledge to reqwest::blocking::Client Closes #2108
1 parent 2332936 commit b3feff6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/blocking/client.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,14 @@ impl ClientBuilder {
478478
self.with_inner(|inner| inner.http2_max_frame_size(sz))
479479
}
480480

481+
/// This requires the optional `http3` feature to be
482+
/// enabled.
483+
#[cfg(feature = "http3")]
484+
#[cfg_attr(docsrs, doc(cfg(feature = "http3")))]
485+
pub fn http3_prior_knowledge(self) -> ClientBuilder {
486+
self.with_inner(|inner| inner.http3_prior_knowledge())
487+
}
488+
481489
// TCP options
482490

483491
/// Set whether sockets have `TCP_NODELAY` enabled.

0 commit comments

Comments
 (0)