Commit 111d038 authored and committed Jun 28, 2024
1 parent aa7ff60 commit 111d038 Copy full SHA for 111d038
File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -176,8 +176,16 @@ where
176
176
///
177
177
/// `req` must have a `Host` header.
178
178
///
179
- /// Absolute-form `Uri`s are not required. If received, they will be serialized
180
- /// as-is.
179
+ /// # Uri
180
+ ///
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.
181
189
pub fn send_request (
182
190
& mut self ,
183
191
req : Request < B > ,
You can’t perform that action at this time.
0 commit comments