File tree Expand file tree Collapse file tree 2 files changed +6
-22
lines changed Expand file tree Collapse file tree 2 files changed +6
-22
lines changed Original file line number Diff line number Diff line change @@ -178,18 +178,10 @@ where
178
178
///
179
179
/// Returns a future that if successful, yields the `Response`.
180
180
///
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.
185
182
///
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.
193
185
pub fn send_request (
194
186
& mut self ,
195
187
req : Request < B > ,
Original file line number Diff line number Diff line change @@ -125,18 +125,10 @@ where
125
125
///
126
126
/// Returns a future that if successful, yields the `Response`.
127
127
///
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.
132
129
///
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.
140
132
pub fn send_request (
141
133
& mut self ,
142
134
req : Request < B > ,
You can’t perform that action at this time.
0 commit comments