Register an IProtocol
provider to receive the response
body.
The protocol will be connected to a transport which provides
IPushProducer
. The protocol's
connectionLost
method will be called with:
-
ResponseDone, which indicates that all bytes from the response have
been successfully delivered.
-
PotentialDataLoss, which indicates that it cannot be determined if
the entire response body has been delivered. This only occurs when
making requests to HTTP servers which do not set Content-Length
or a Transfer-Encoding in the response.
-
ResponseFailed, which indicates that some bytes from the response
were lost. The
reasons
attribute of the exception may
provide more specific indications as to why.