1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-01-29 19:27:34 +01:00

Fix types allowed as body

This commit is contained in:
Maks3w 2015-08-14 07:45:33 +02:00
parent a72ba15dc8
commit a9438ca9f4

View File

@ -152,8 +152,7 @@ body
:Types:
- string
- ``fopen()`` resource
- ``GuzzleHttp\Stream\StreamInterface``
- ``GuzzleHttp\Post\PostBodyInterface``
- ``Psr\Http\Message\StreamInterface``
:Default: None
:Constant: ``GuzzleHttp\RequestOptions::BODY``
@ -174,7 +173,7 @@ This setting can be set to any of the following types:
$resource = fopen('http://httpbin.org', 'r');
$client->put('/put', ['body' => $resource]);
- ``GuzzleHttp\Stream\StreamInterface``
- ``Psr\Http\Message\StreamInterface``
.. code-block:: php