mirror of
https://github.com/guzzle/guzzle.git
synced 2025-01-18 05:48:15 +01:00
Move request option up in docs
This commit is contained in:
parent
122c0b7f78
commit
fe27635017
@ -396,6 +396,29 @@ the body of a request is greater than 1 MB and a request is using HTTP/1.1.
|
||||
implemented by Guzzle HTTP handlers used by a client.
|
||||
|
||||
|
||||
force_ip_resolve
|
||||
----------------
|
||||
|
||||
:Summary: Set to "v4" if you want the HTTP handlers to use only ipv4 protocol or "v6" for ipv6 protocol.
|
||||
:Types: string
|
||||
:Default: null
|
||||
:Constant: ``GuzzleHttp\RequestOptions::FORCE_IP_RESOLVE``
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
// Force ipv4 protocol
|
||||
$client->request('GET', '/foo', ['force_ip_resolve' => 'v4']);
|
||||
|
||||
// Force ipv6 protocol
|
||||
$client->request('GET', '/foo', ['force_ip_resolve' => 'v6']);
|
||||
|
||||
.. note::
|
||||
|
||||
This setting must be supported by the HTTP handler used to send a request.
|
||||
``force_ip_resolve`` is currently only supported by the built-in cURL
|
||||
handler.
|
||||
|
||||
|
||||
form_params
|
||||
-----------
|
||||
|
||||
@ -975,30 +998,6 @@ timeout
|
||||
// PHP Fatal error: Uncaught exception 'GuzzleHttp\Exception\RequestException'
|
||||
|
||||
|
||||
.. force_ip_resolve-option:
|
||||
|
||||
force_ip_resolve
|
||||
----------------
|
||||
|
||||
:Summary: Set to "v4" if you want the HTTP handlers to use only ipv4 protocol or "v6" for ipv6 protocol.
|
||||
:Types: string
|
||||
:Default: null
|
||||
:Constant: ``GuzzleHttp\RequestOptions::FORCE_IP_RESOLVE``
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
// Force ipv4 protocol
|
||||
$client->request('GET', '/foo', ['force_ip_resolve' => 'v4']);
|
||||
|
||||
// Force ipv6 protocol
|
||||
$client->request('GET', '/foo', ['force_ip_resolve' => 'v6']);
|
||||
|
||||
.. note::
|
||||
|
||||
This setting must be supported by the HTTP handler used to send a request.
|
||||
``force_ip_resolve`` is currently only supported by the built-in cURL
|
||||
handler.
|
||||
|
||||
.. _version-option:
|
||||
|
||||
version
|
||||
|
Loading…
x
Reference in New Issue
Block a user