amazonka-core-2.0: Core data types and functionality for Amazonka libraries.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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