React\HttpClient\Response::close PHP Method

close() public method

public close ( Exception $error = null )
$error Exception
    public function close(\Exception $error = null)
    {
        if (!$this->readable) {
            return;
        }
        $this->readable = false;
        $this->emit('end', array($error, $this));
        $this->removeAllListeners();
        $this->stream->close();
    }