Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.16.24.18
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
react /
http-client /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
ChunkedStreamDecoder.php
5.12
KB
-rw-r--r--
2018-04-10 09:00
Client.php
666
B
-rw-r--r--
2018-04-10 09:00
Request.php
7.7
KB
-rw-r--r--
2018-04-10 09:00
RequestData.php
3.25
KB
-rw-r--r--
2018-04-10 09:00
Response.php
3.71
KB
-rw-r--r--
2018-04-10 09:00
Save
Rename
<?php namespace React\HttpClient; use Evenement\EventEmitter; use React\Stream\ReadableStreamInterface; use React\Stream\Util; use React\Stream\WritableStreamInterface; /** * @event data ($bodyChunk) * @event error * @event end */ class Response extends EventEmitter implements ReadableStreamInterface { private $stream; private $protocol; private $version; private $code; private $reasonPhrase; private $headers; private $readable = true; public function __construct(ReadableStreamInterface $stream, $protocol, $version, $code, $reasonPhrase, $headers) { $this->stream = $stream; $this->protocol = $protocol; $this->version = $version; $this->code = $code; $this->reasonPhrase = $reasonPhrase; $this->headers = $headers; if (strtolower($this->getHeaderLine('Transfer-Encoding')) === 'chunked') { $this->stream = new ChunkedStreamDecoder($stream); $this->removeHeader('Transfer-Encoding'); } $this->stream->on('data', array($this, 'handleData')); $this->stream->on('error', array($this, 'handleError')); $this->stream->on('end', array($this, 'handleEnd')); $this->stream->on('close', array($this, 'handleClose')); } 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; } private function removeHeader($name) { foreach ($this->headers as $key => $value) { if (strcasecmp($name, $key) === 0) { unset($this->headers[$key]); break; } } } private function getHeader($name) { $name = strtolower($name); $normalized = array_change_key_case($this->headers, CASE_LOWER); return isset($normalized[$name]) ? (array)$normalized[$name] : array(); } private function getHeaderLine($name) { return implode(', ' , $this->getHeader($name)); } /** @internal */ public function handleData($data) { if ($this->readable) { $this->emit('data', array($data)); } } /** @internal */ public function handleEnd() { if (!$this->readable) { return; } $this->emit('end'); $this->close(); } /** @internal */ public function handleError(\Exception $error) { if (!$this->readable) { return; } $this->emit('error', array(new \RuntimeException( "An error occurred in the underlying stream", 0, $error ))); $this->close(); } /** @internal */ public function handleClose() { $this->close(); } public function close() { if (!$this->readable) { return; } $this->readable = false; $this->stream->close(); $this->emit('close'); $this->removeAllListeners(); } public function isReadable() { return $this->readable; } public function pause() { if (!$this->readable) { return; } $this->stream->pause(); } public function resume() { if (!$this->readable) { return; } $this->stream->resume(); } public function pipe(WritableStreamInterface $dest, array $options = array()) { Util::pipe($this, $dest, $options); return $dest; } }