Copied!

Represents a cURL easy handle and the data it populates.

  • internal
CloneableFinalInstantiable
Properties
public $createResponseException = NULL
 
  • var \Exception|null Exception during createResponse (if any)
public $errno = 0
 
  • var int cURL error number (if any)
public $handle = NULL
 
  • var resource|\CurlHandle cURL resource
public $headers = []
 
  • var array Received HTTP headers so far
public $onHeadersException = NULL
 
  • var \Throwable|null Exception during on_headers (if any)
public $options = []
 
  • var array Request options
public $request = NULL
 
  • var \RequestInterface Request being sent
public $response = NULL
 
  • var \ResponseInterface|null Received response (if any)
public $sink = NULL
 
  • var \StreamInterface Where data is being written
Methods
public __get( $name)
 
  • param string $name
  • return void
  • throws \BadMethodCallException
public createResponse() : void
 

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

  • throws \RuntimeException if no headers have been received or the first header line is invalid.
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration