Class Guzzle\Http\Curl\CurlVersion

InheritanceGuzzle\Http\Curl\CurlVersion

Class used for querying curl_version data

Public Methods

Hide inherited methods

MethodDescriptionDefined By
get() Get a specific type of curl information Guzzle\Http\Curl\CurlVersion
getAll() Get all of the curl_version() data Guzzle\Http\Curl\CurlVersion
getInstance() Guzzle\Http\Curl\CurlVersion

Property Details

$instance protected static property
protected static Guzzle\Http\Curl\CurlVersion $instance null
$userAgent protected property

Default user agent

protected string $userAgent null
$version protected property

Curl_version() information

protected array $version null

Method Details

get() public method

Get a specific type of curl information

public string|float|bool get ( $type )
$type string

Version information to retrieve. This value is one of:

- version_number:     cURL 24 bit version number
- version:            cURL version number, as a string
- ssl_version_number: OpenSSL 24 bit version number
- ssl_version:        OpenSSL version number, as a string
- libz_version:       zlib version number, as a string
- host:               Information about the host where cURL was built
- features:           A bitmask of the CURL_VERSION_XXX constants
- protocols:          An array of protocols names supported by cURL
return string|float|bool

If the $type is found, and false if not found

getAll() public method

Get all of the curl_version() data

public array getAll ( )
getInstance() public static method

public static Guzzle\Http\Curl\CurlVersion getInstance ( )