public function CurlHandler::__invoke in Auth0 Single Sign On 8.2
File
- vendor/
guzzlehttp/ guzzle/ src/ Handler/ CurlHandler.php, line 33
Class
- CurlHandler
- HTTP handler that uses cURL easy handles as a transport layer.
Namespace
GuzzleHttp\HandlerCode
public function __invoke(RequestInterface $request, array $options) {
if (isset($options['delay'])) {
usleep($options['delay'] * 1000);
}
$easy = $this->factory
->create($request, $options);
curl_exec($easy->handle);
$easy->errno = curl_errno($easy->handle);
return CurlFactory::finish($this, $easy, $this->factory);
}