Skip to content

Commit

Permalink
Add http3 feature to blocking client (seanmonstar#2110)
Browse files Browse the repository at this point in the history
Add public method http3_prior_knowledge to reqwest::blocking::Client

Closes seanmonstar#2108
  • Loading branch information
basic-bgnr authored and Nutomic committed Nov 7, 2024
1 parent 3ffb958 commit 4c2d007
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/blocking/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,14 @@ impl ClientBuilder {
self.with_inner(|inner| inner.http2_max_frame_size(sz))
}

/// This requires the optional `http3` feature to be
/// enabled.
#[cfg(feature = "http3")]
#[cfg_attr(docsrs, doc(cfg(feature = "http3")))]
pub fn http3_prior_knowledge(self) -> ClientBuilder {
self.with_inner(|inner| inner.http3_prior_knowledge())
}

// TCP options

/// Set whether sockets have `TCP_NODELAY` enabled.
Expand Down

0 comments on commit 4c2d007

Please sign in to comment.