\cURLResponse

Summary

Methods
Properties
Constants
__construct()
getInfo()
getContent()
setError()
getError()
hasError()
No public properties found
No constants found
No protected methods found
$ch
$error
$content
N/A
No private methods found
No private properties found
N/A

Properties

$ch

$ch : 

Type

$error

$error : 

Type

$content

$content : 

Type

Methods

__construct()

__construct(\cURL\Request  $request, string  $content = null) 

Constructs response

Parameters

\cURL\Request $request

Request

string $content

Content of reponse

getInfo()

getInfo(integer  $key = null) : mixed

Get information regarding a current transfer If opt is given, returns its value as a string Otherwise, returns an associative array with the following elements (which correspond to opt), or FALSE on failure.

Parameters

integer $key

One of the CURLINFO_* constants

Returns

mixed

getContent()

getContent() : string

Returns content of request

Returns

string —

Content

setError()

setError(\cURL\Error  $error) : void

Sets error instance

Parameters

\cURL\Error $error

Error to set

getError()

getError() : \cURL\Error|null

Returns a error instance

Returns

\cURL\Error|null

hasError()

hasError() : integer

Returns the error number for the last cURL operation.

Returns

integer —

Returns the error number or 0 (zero) if no error occurred.