Skip to content

Commit

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

Closes #2108
  • Loading branch information
basic-bgnr authored Jan 24, 2024
1 parent 2332936 commit b3feff6
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 b3feff6

Please sign in to comment.