From 0ae1bbd25dccb0ec98c148aa6e82b05bae34d1b8 Mon Sep 17 00:00:00 2001 From: Yinuo Deng Date: Sat, 15 Apr 2023 00:10:32 +0800 Subject: [PATCH] Updated documentation comments for c76056b and f70c36e --- actix-web/src/response/builder.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/actix-web/src/response/builder.rs b/actix-web/src/response/builder.rs index b814cc3fc..2daacc055 100644 --- a/actix-web/src/response/builder.rs +++ b/actix-web/src/response/builder.rs @@ -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(&mut self, stream: S) -> HttpResponse where