1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-24 01:53:58 +01:00

Adding a not about the fact that a response may or may not have a body in the headers event

This commit is contained in:
Michael Dowling 2014-03-25 10:14:36 -07:00
parent e235644d18
commit 7760dcfa5b

View File

@ -392,6 +392,14 @@ This event cannot be intercepted.
}
});
.. note::
A response may or may not yet have a body associated with it. If a request
used a ``save_to`` request option, then the response will have a body.
Otherwise, the response will have no body but you are free to associate one
with the response. As an example, this is done in the
`progress subscriber <https://github.com/guzzle/progress-subscriber/blob/master/src/Progress.php>`_.
.. _complete_event:
complete