libZSamazonka-coreZSamazonka-core
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Response

Description

Functions contained in this module fully consume the body and thus close the connection. This is needed to avoid hitting this issue: https://github.com/brendanhay/amazonka/issues/490.

The only exception is receiveBody, which passes a streaming response body to a callback and thus is not allowed to close the connection. Users of streaming functions are advised to be careful and consume the response body manually if they want the connection to be closed promptly.

Note that using runResourceT will always close the connection.

Documentation