$sink $sink : \Psr\Http\Message\StreamInterface Type \Psr\Http\Message\StreamInterface — Where data is being written
$response $response : \Psr\Http\Message\ResponseInterface Type \Psr\Http\Message\ResponseInterface — Received response (if any)
$request $request : \Psr\Http\Message\RequestInterface Type \Psr\Http\Message\RequestInterface — Request being sent
$onHeadersException $onHeadersException : \Exception Type \Exception — Exception during on_headers (if any)
createResponse() createResponse() Attach a response to the easy handle based on the received headers. Throws \RuntimeException if no headers have been received.