We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa7ff60 commit 111d038Copy full SHA for 111d038
src/client/conn/http1.rs
@@ -176,8 +176,16 @@ where
176
///
177
/// `req` must have a `Host` header.
178
179
- /// Absolute-form `Uri`s are not required. If received, they will be serialized
180
- /// as-is.
+ /// # Uri
+ ///
181
+ /// The `Uri` of the request is serialized as-is.
182
183
+ /// - Usually you want origin-form (`/path?query`).
184
+ /// - For sending to an HTTP proxy, you want to send in absolute-form
185
+ /// (`https://hyper.rs/guides`).
186
187
+ /// This is however not enforced or validated and it is up to the user
188
+ /// of this method to ensure the `Uri` is correct for their intended purpose.
189
pub fn send_request(
190
&mut self,
191
req: Request<B>,
0 commit comments