File ManagerCurrent Directory: wp-content/plugins/google-site-kit/third-party/guzzlehttp/guzzle/src/HandlerLinux appserver-7a7af3b2-php-0c9ec09e2f9746c2a80fa3756c076432 6.12.94+ #1 SMP Fri Jul 17 09:26:56 UTC 2026 x86_64Edit File: CurlHandler.php <?php namespace Google\Site_Kit_Dependencies\GuzzleHttp\Handler; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7; use Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface; /** * HTTP handler that uses cURL easy handles as a transport layer. * * When using the CurlHandler, custom curl options can be specified as an * associative array of curl option constants mapping to values in the * **curl** key of the "client" key of the request. */ class CurlHandler { /** @var CurlFactoryInterface */ private $factory; /** * Accepts an associative array of options: * * - factory: Optional curl factory used to create cURL handles. * * @param array $options Array of options to use with the handler */ public function __construct(array $options = []) { $this->factory = isset($options['handle_factory']) ? $options['handle_factory'] : new \Google\Site_Kit_Dependencies\GuzzleHttp\Handler\CurlFactory(3); } public function __invoke(\Google\Site_Kit_Dependencies\Psr\Http\Message\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 \Google\Site_Kit_Dependencies\GuzzleHttp\Handler\CurlFactory::finish($this, $easy, $this->factory); } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)DirCurlFactory.phpFile21.26 KB Rename | Delete | EditCurlFactoryInterface.phpFile855.00 B Rename | Delete | EditCurlHandler.phpFile1.44 KB Rename | Delete | EditCurlMultiHandler.phpFile6.56 KB Rename | Delete | EditEasyHandle.phpFile2.84 KB Rename | Delete | EditMockHandler.phpFile6.34 KB Rename | Delete | EditProxy.phpFile1.85 KB Rename | Delete | EditStreamHandler.phpFile18.38 KB Rename | Delete | Edit