@@ -106,14 +106,14 @@ impl Client<(), ()> {
106106 /// # #[cfg(feature = "tokio")]
107107 /// # fn run () {
108108 /// use std::time::Duration;
109- /// use hyper ::Client;
109+ /// use hyper_util::client::legacy ::Client;
110110 /// use hyper_util::rt::TokioExecutor;
111111 ///
112112 /// let client = Client::builder(TokioExecutor::new())
113113 /// .pool_idle_timeout(Duration::from_secs(30))
114114 /// .http2_only(true)
115115 /// .build_http();
116- /// # let infer: Client<_, () > = client;
116+ /// # let infer: Client<_, http_body_util::Full<bytes::Bytes> > = client;
117117 /// # drop(infer);
118118 /// # }
119119 /// # fn main() {}
@@ -146,9 +146,13 @@ where
146146 /// ```
147147 /// # #[cfg(feature = "tokio")]
148148 /// # fn run () {
149- /// use hyper::{Client, Uri};
149+ /// use hyper::Uri;
150+ /// use hyper_util::client::legacy::Client;
151+ /// use hyper_util::rt::TokioExecutor;
152+ /// use bytes::Bytes;
153+ /// use http_body_util::Full;
150154 ///
151- /// let client = Client::new();
155+ /// let client: Client<_, Full<Bytes>> = Client::builder(TokioExecutor:: new()).build_http ();
152156 ///
153157 /// let future = client.get(Uri::from_static("http://httpbin.org/ip"));
154158 /// # }
@@ -175,12 +179,15 @@ where
175179 /// ```
176180 /// # #[cfg(feature = "tokio")]
177181 /// # fn run () {
178- /// use hyper::{Method, Client, Request};
182+ /// use hyper::{Method, Request};
183+ /// use hyper_util::client::legacy::Client;
179184 /// use http_body_util::Full;
185+ /// use hyper_util::rt::TokioExecutor;
186+ /// use bytes::Bytes;
180187 ///
181- /// let client = Client::new();
188+ /// let client: Client<_, Full<Bytes>> = Client::builder(TokioExecutor:: new()).build_http ();
182189 ///
183- /// let req = Request::builder()
190+ /// let req: Request<Full<Bytes>> = Request::builder()
184191 /// .method(Method::POST)
185192 /// .uri("http://httpbin.org/post")
186193 /// .body(Full::from("Hallo!"))
@@ -937,14 +944,14 @@ fn is_schema_secure(uri: &Uri) -> bool {
937944/// # #[cfg(feature = "tokio")]
938945/// # fn run () {
939946/// use std::time::Duration;
940- /// use hyper ::Client;
947+ /// use hyper_util::client::legacy ::Client;
941948/// use hyper_util::rt::TokioExecutor;
942949///
943950/// let client = Client::builder(TokioExecutor::new())
944951/// .pool_idle_timeout(Duration::from_secs(30))
945952/// .http2_only(true)
946953/// .build_http();
947- /// # let infer: Client<_, _ > = client;
954+ /// # let infer: Client<_, http_body_util::Full<bytes::Bytes> > = client;
948955/// # drop(infer);
949956/// # }
950957/// # fn main() {}
0 commit comments