Class CurlHandle
Immutable wrapper for a cURL handle
public static
|
#
factory(
Factory method to create a new curl handle based on an HTTP request. |
public
|
#
__construct( resource $handle,
Construct a new CurlHandle object that wraps a cURL handle |
public
|
|
public
|
|
public
boolean
|
|
public
string
|
|
public
integer
|
|
public
|
|
public
array|mixed
|
|
public
string|resource|null
|
|
public
|
|
public
resource|null
|
|
public
|
#
getOptions( )
Get the cURL setopt options of the handle. Changing values in the return object will have no effect on the curl handle after it is created. |
public
|
#
updateRequestFromTransfer(
Update a request based on the log messages of the CurlHandle |
public static
array
|
#
parseCurlConfig( array|
Parse the config and replace curl.* configurators into the constant based values so it can be used elsewhere |
string |
BODY_AS_STRING
|
'body_as_string' |
|
string |
PROGRESS
|
'progress' |
|
string |
DEBUG
|
'debug' |
protected
|
$options |
|
#
Curl options |
protected
resource
|
$handle |
|
#
Curl resource handle |
protected
integer
|
$errorNo | CURLE_OK |
#
CURLE_* error |