mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 10:49:37 +02:00
Move from React 0.4.0 to 0.3.4 for PHP 5.3 compatibility reasons
This commit is contained in:
parent
d3f01a3bc7
commit
7f82bea13e
50 changed files with 608 additions and 1937 deletions
|
@ -11,16 +11,19 @@ use React\Stream\WritableStreamInterface;
|
|||
|
||||
class Response extends EventEmitter implements ReadableStreamInterface
|
||||
{
|
||||
private $loop;
|
||||
private $stream;
|
||||
private $protocol;
|
||||
private $version;
|
||||
private $code;
|
||||
private $reasonPhrase;
|
||||
private $headers;
|
||||
private $body;
|
||||
private $readable = true;
|
||||
|
||||
public function __construct(Stream $stream, $protocol, $version, $code, $reasonPhrase, $headers)
|
||||
public function __construct(LoopInterface $loop, Stream $stream, $protocol, $version, $code, $reasonPhrase, $headers)
|
||||
{
|
||||
$this->loop = $loop;
|
||||
$this->stream = $stream;
|
||||
$this->protocol = $protocol;
|
||||
$this->version = $version;
|
||||
|
@ -32,31 +35,36 @@ class Response extends EventEmitter implements ReadableStreamInterface
|
|||
$stream->on('error', array($this, 'handleError'));
|
||||
$stream->on('end', array($this, 'handleEnd'));
|
||||
}
|
||||
|
||||
|
||||
public function getProtocol()
|
||||
{
|
||||
return $this->protocol;
|
||||
}
|
||||
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return $this->version;
|
||||
}
|
||||
|
||||
|
||||
public function getCode()
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
|
||||
|
||||
public function getReasonPhrase()
|
||||
{
|
||||
return $this->reasonPhrase;
|
||||
}
|
||||
|
||||
|
||||
public function getHeaders()
|
||||
{
|
||||
return $this->headers;
|
||||
}
|
||||
|
||||
public function getBody()
|
||||
{
|
||||
return $this->body;
|
||||
}
|
||||
|
||||
public function handleData($data)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue