Represents a cURL easy handle and the data it populates.

  • internal
Cloneable Final Instantiable
public $createResponseException
  • var Exception | null Exception during createResponse (if any)
public $errno
  • var int cURL error number (if any)
public $handle
  • var resource | CurlHandle cURL resource
public $headers
  • var array Received HTTP headers so far
public $onHeadersException
  • var Throwable | null Exception during on_headers (if any)
public $options
  • var array Request options
public $request
  • var RequestInterface Request being sent
public $response
  • var ResponseInterface | null Received response (if any)
public $sink
  • var StreamInterface Where data is being written
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.
© 2021 Bruce Wells
Search Namespaces \ Classes