$sink $sink : \Psr\Http\Message\StreamInterface Type \Psr\Http\Message\StreamInterface — Where data is being written
$response $response : \Psr\Http\Message\ResponseInterface|null Type \Psr\Http\Message\ResponseInterface|null — Received response (if any)
$request $request : \Psr\Http\Message\RequestInterface Type \Psr\Http\Message\RequestInterface — Request being sent
$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)
createResponse() createResponse() Attach a response to the easy handle based on the received headers. Throws \RuntimeException if no headers have been received.