Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 3... Línea 3...
3
namespace GuzzleHttp;
3
namespace GuzzleHttp;
Línea 4... Línea 4...
4
 
4
 
5
/**
5
/**
6
 * This class contains a list of built-in Guzzle request options.
6
 * This class contains a list of built-in Guzzle request options.
7
 *
-
 
8
 * More documentation for each option can be found at http://guzzlephp.org/.
-
 
9
 *
7
 *
10
 * @link http://docs.guzzlephp.org/en/v6/request-options.html
8
 * @see https://docs.guzzlephp.org/en/latest/request-options.html
11
 */
9
 */
12
final class RequestOptions
10
final class RequestOptions
13
{
11
{
14
    /**
12
    /**
Línea 61... Línea 59...
61
    /**
59
    /**
62
     * cookies: (bool|GuzzleHttp\Cookie\CookieJarInterface, default=false)
60
     * cookies: (bool|GuzzleHttp\Cookie\CookieJarInterface, default=false)
63
     * Specifies whether or not cookies are used in a request or what cookie
61
     * Specifies whether or not cookies are used in a request or what cookie
64
     * jar to use or what cookies to send. This option only works if your
62
     * jar to use or what cookies to send. This option only works if your
65
     * handler has the `cookie` middleware. Valid values are `false` and
63
     * handler has the `cookie` middleware. Valid values are `false` and
66
     * an instance of {@see \GuzzleHttp\Cookie\CookieJarInterface}.
64
     * an instance of {@see Cookie\CookieJarInterface}.
67
     */
65
     */
68
    public const COOKIES = 'cookies';
66
    public const COOKIES = 'cookies';
Línea 69... Línea 67...
69
 
67
 
70
    /**
68
    /**
71
     * connect_timeout: (float, default=0) Float describing the number of
69
     * connect_timeout: (float, default=0) Float describing the number of
72
     * seconds to wait while trying to connect to a server. Use 0 to wait
70
     * seconds to wait while trying to connect to a server. Use 0 to wait
73
     * indefinitely (the default behavior).
71
     * 300 seconds (the default behavior).
74
     */
72
     */
Línea 75... Línea 73...
75
    public const CONNECT_TIMEOUT = 'connect_timeout';
73
    public const CONNECT_TIMEOUT = 'connect_timeout';
-
 
74
 
-
 
75
    /**
-
 
76
     * crypto_method: (int) A value describing the minimum TLS protocol
-
 
77
     * version to use.
-
 
78
     *
-
 
79
     * This setting must be set to one of the
-
 
80
     * ``STREAM_CRYPTO_METHOD_TLS*_CLIENT`` constants. PHP 7.4 or higher is
-
 
81
     * required in order to use TLS 1.3, and cURL 7.34.0 or higher is required
-
 
82
     * in order to specify a crypto method, with cURL 7.52.0 or higher being
-
 
83
     * required to use TLS 1.3.
-
 
84
     */
-
 
85
    public const CRYPTO_METHOD = 'crypto_method';
76
 
86
 
77
    /**
87
    /**
78
     * debug: (bool|resource) Set to true or set to a PHP stream returned by
88
     * debug: (bool|resource) Set to true or set to a PHP stream returned by
79
     * fopen()  enable debug output with the HTTP handler used to send a
89
     * fopen()  enable debug output with the HTTP handler used to send a
80
     * request.
90
     * request.