Skip to content

Fix client builder argument missing in doc #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions src/client/legacy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,13 @@ impl Client<(), ()> {
/// # Example
///
/// ```
/// # #[cfg(feature = "runtime")]
/// # #[cfg(feature = "runtime")]
/// # fn run () {
/// use std::time::Duration;
/// use hyper::Client;
/// use hyper_util::rt::TokioExecutor;
///
/// let client = Client::builder()
/// let client = Client::builder(TokioExecutor::new())
/// .pool_idle_timeout(Duration::from_secs(30))
/// .http2_only(true)
/// .build_http();
Expand Down Expand Up @@ -141,7 +142,7 @@ where
/// # Example
///
/// ```
/// # #[cfg(feature = "runtime")]
/// # #[cfg(feature = "runtime")]
/// # fn run () {
/// use hyper::{Client, Uri};
///
Expand Down Expand Up @@ -170,7 +171,7 @@ where
/// # Example
///
/// ```
/// # #[cfg(feature = "runtime")]
/// # #[cfg(feature = "runtime")]
/// # fn run () {
/// use hyper::{Method, Client, Request};
/// use http_body_util::Full;
Expand Down Expand Up @@ -894,12 +895,13 @@ fn is_schema_secure(uri: &Uri) -> bool {
/// # Example
///
/// ```
/// # #[cfg(feature = "runtime")]
/// # #[cfg(feature = "runtime")]
/// # fn run () {
/// use std::time::Duration;
/// use hyper::Client;
/// use hyper_util::rt::TokioExecutor;
///
/// let client = Client::builder()
/// let client = Client::builder(TokioExecutor::new())
/// .pool_idle_timeout(Duration::from_secs(30))
/// .http2_only(true)
/// .build_http();
Expand Down