function CurlFactory::supportsHttp2
1 call to CurlFactory::supportsHttp2()
- CurlFactory::create in vendor/
guzzlehttp/ guzzle/ src/ Handler/ CurlFactory.php - Creates a cURL handle resource.
File
-
vendor/
guzzlehttp/ guzzle/ src/ Handler/ CurlFactory.php, line 86
Class
- CurlFactory
- Creates curl resources from a request
Namespace
GuzzleHttp\HandlerCode
private static function supportsHttp2() : bool {
static $supportsHttp2 = null;
if (null === $supportsHttp2) {
$supportsHttp2 = self::supportsTls12() && defined('CURL_VERSION_HTTP2') && \CURL_VERSION_HTTP2 & \curl_version()['features'];
}
return $supportsHttp2;
}