\GuzzleHttp\HandlerEasyHandle

Represents a cURL easy handle and the data it populates.

Summary

Methods
Properties
Constants
createResponse()
__get()
$handle
$sink
$headers
$response
$request
$options
$errno
$onHeadersException
$createResponseException
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$handle

$handle : resource|\CurlHandle

Type

resource|\CurlHandle — cURL resource

$headers

$headers : array

Type

array — Received HTTP headers so far

$options

$options : array

Type

array — Request options

$errno

$errno : integer

Type

integer — cURL error number (if any)

$onHeadersException

$onHeadersException : \Throwable|null

Type

\Throwable|null — Exception during on_headers (if any)

$createResponseException

$createResponseException : \Exception|null

Type

\Exception|null — Exception during createResponse (if any)

Methods

createResponse()

createResponse() 

Attach a response to the easy handle based on the received headers.

Throws

\RuntimeException

if no headers have been received.

__get()

__get(string  $name) : void

Parameters

string $name

Throws

\BadMethodCallException