You are here

private function StreamHandler::add_timeout in Lockr 7.3

File

vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php, line 414

Class

StreamHandler
HTTP handler that uses PHP's HTTP stream wrapper.

Namespace

GuzzleHttp\Handler

Code

private function add_timeout(RequestInterface $request, &$options, $value, &$params) {
  if ($value > 0) {
    $options['http']['timeout'] = $value;
  }
}