Updated documentation comments for c76056b and f70c36e

This commit is contained in:
Yinuo Deng 2023-04-15 00:10:32 +08:00
parent e6b8af5aad
commit 0ae1bbd25d
No known key found for this signature in database
GPG Key ID: 6DF6E347982C88F8
1 changed files with 4 additions and 0 deletions

View File

@ -317,6 +317,10 @@ impl HttpResponseBuilder {
/// Set a streaming body and build the `HttpResponse`.
///
/// `HttpResponseBuilder` can not be used after this call.
///
/// if `Content-Type` is not set, then it is automatically set to `application/octet-stream`.
///
/// if `Content-Length` is set, then `no_chunk()` is automatically called.
#[inline]
pub fn streaming<S, E>(&mut self, stream: S) -> HttpResponse
where