merge #3748: [downloader:http] add 'consume-content' option

This commit is contained in:
Mike Fährmann
2023-04-26 23:03:18 +02:00
2 changed files with 47 additions and 2 deletions

View File

@@ -3646,6 +3646,25 @@ Description
contains JPEG/JFIF data.
downloader.http.consume-content
-------------------------------
Type
``bool``
Default
``false``
Description
Controls the behavior when an HTTP response is considered
unsuccessful
If the value is ``true``, consume the response body. This
avoids closing the connection and therefore improves connection
reuse.
If the value is ``false``, immediately close the connection
without reading the response. This can be useful if the server
is known to send large bodies for error responses.
downloader.http.chunk-size
--------------------------
Type