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:
parent
e235644d18
commit
7760dcfa5b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user