WyriHaximus / react-guzzle-http-client

Meta package for ReactPHP HttpClient adapters/handles for Guzzle 4, 5, and 6.
MIT License
10 stars 8 forks source link

Default Options - Guzzle 6 Option Handling #4

Closed shaunbramley closed 8 years ago

shaunbramley commented 8 years ago

Guzzle 6 Handlers will be provide an array of options that will not overwrite react-guzzle-http-client\Request default options.

As (or rather if) provided:

$options = [
    'stream' => true,
    'connect_timeout' => 0,
    'timeout' => 0,
    'delay' => 0
];

As expected within react-guzzle-http-client\Request:

$options = ['client' => [
    'stream' => true,
    'connect_timeout' => 0,
    'timeout' => 0,
    'delay' => 0
]];
shaunbramley commented 8 years ago

Issues were resolved with the merging / release of referenced PR.