Skip to content

Commit 2a093c0

Browse files
docs: remove reference to Client (#3598)
1 parent 9c438e3 commit 2a093c0

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

src/client/conn/http1.rs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -178,18 +178,10 @@ where
178178
///
179179
/// Returns a future that if successful, yields the `Response`.
180180
///
181-
/// # Note
182-
///
183-
/// There are some key differences in what automatic things the `Client`
184-
/// does for you that will not be done here:
181+
/// `req` must have a `Host` header.
185182
///
186-
/// - `Client` requires absolute-form `Uri`s, since the scheme and
187-
/// authority are needed to connect. They aren't required here.
188-
/// - Since the `Client` requires absolute-form `Uri`s, it can add
189-
/// the `Host` header based on it. You must add a `Host` header yourself
190-
/// before calling this method.
191-
/// - Since absolute-form `Uri`s are not required, if received, they will
192-
/// be serialized as-is.
183+
/// Absolute-form `Uri`s are not required. If received, they will be serialized
184+
/// as-is.
193185
pub fn send_request(
194186
&mut self,
195187
req: Request<B>,

src/client/conn/http2.rs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -125,18 +125,10 @@ where
125125
///
126126
/// Returns a future that if successful, yields the `Response`.
127127
///
128-
/// # Note
129-
///
130-
/// There are some key differences in what automatic things the `Client`
131-
/// does for you that will not be done here:
128+
/// `req` must have a `Host` header.
132129
///
133-
/// - `Client` requires absolute-form `Uri`s, since the scheme and
134-
/// authority are needed to connect. They aren't required here.
135-
/// - Since the `Client` requires absolute-form `Uri`s, it can add
136-
/// the `Host` header based on it. You must add a `Host` header yourself
137-
/// before calling this method.
138-
/// - Since absolute-form `Uri`s are not required, if received, they will
139-
/// be serialized as-is.
130+
/// Absolute-form `Uri`s are not required. If received, they will be serialized
131+
/// as-is.
140132
pub fn send_request(
141133
&mut self,
142134
req: Request<B>,

0 commit comments

Comments
 (0)