File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -297,15 +297,21 @@ impl Drop for DontDropOutgoingBody {
297
297
}
298
298
}
299
299
300
- /// A placeholder for use as the type parameter to [`Response`] to indicate
301
- /// that the body has not yet started. This is used with
302
- /// [`Responder::start_response`], which has a `Response<BodyForthcoming>`
303
- /// argument.
300
+ /// A placeholder for use as the type parameter to [`Request`] and [`Response`]
301
+ /// to indicate that the body has not yet started. This is used with
302
+ /// [`Client::start_request`] and [`Responder::start_response`], which have
303
+ /// `Requeset<BodyForthcoming>` and `Response<BodyForthcoming>` arguments,
304
+ /// respectively.
304
305
///
305
306
/// To instead start the response and obtain the output stream for the body,
306
307
/// use [`Responder::respond`].
308
+ /// To instead send a request or response with an input stream for the body,
309
+ /// use [`Client::send`] or [`Responder::respond`].
307
310
///
311
+ /// [`Request`]: crate::http::Request
308
312
/// [`Response`]: crate::http::Response
313
+ /// [`Client::start_request`]: crate::http::Client::start_request
309
314
/// [`Responder::start_response`]: crate::http::server::Responder::start_response
315
+ /// [`Client::send`]: crate::http::Client::send
310
316
/// [`Responder::respond`]: crate::http::server::Responder::respond
311
317
pub struct BodyForthcoming ;
You can’t perform that action at this time.
0 commit comments