Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions http_client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,9 @@ immediately instead of waiting to receive the response::
// getting the response headers waits until they arrive
$contentType = $response->getHeaders()['content-type'][0];

// trying to get the response contents will block the execution until
// the full response contents are received
$contents = $response->getContent();
// trying to get the response content will block the execution until
// the full response content is received
$content = $response->getContent();

This component also supports :ref:`streaming responses <http-client-streaming-responses>`
for full asynchronous applications.
Expand Down