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