Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
php /
Slim /
Psr7 /
Delete
Unzip
Name
Size
Permission
Date
Action
Factory
[ DIR ]
drwxr-xr-x
2025-06-07 09:54
Interfaces
[ DIR ]
drwxr-xr-x
2025-06-07 09:54
Cookies.php
5.23
KB
-rw-r--r--
2023-04-17 16:02
Environment.php
1.51
KB
-rw-r--r--
2023-04-17 16:02
Header.php
1.81
KB
-rw-r--r--
2023-04-17 16:02
Headers.php
8.64
KB
-rw-r--r--
2023-04-17 16:02
Message.php
3.75
KB
-rw-r--r--
2023-04-17 16:02
NonBufferedBody.php
2.45
KB
-rw-r--r--
2023-04-17 16:02
Request.php
8.51
KB
-rw-r--r--
2023-04-17 16:02
Response.php
8.44
KB
-rw-r--r--
2023-04-17 16:02
Stream.php
8.67
KB
-rw-r--r--
2023-04-17 16:02
UploadedFile.php
8.13
KB
-rw-r--r--
2023-04-17 16:02
Uri.php
11.8
KB
-rw-r--r--
2023-04-17 16:02
autoload.php
1.98
KB
-rw-r--r--
2023-04-19 08:46
Save
Rename
<?php /** * Slim Framework (https://slimframework.com) * * @license https://github.com/slimphp/Slim-Psr7/blob/master/LICENSE.md (MIT License) */ declare(strict_types=1); namespace Slim\Psr7; use InvalidArgumentException; use Psr\Http\Message\MessageInterface; use Psr\Http\Message\StreamInterface; use Slim\Psr7\Interfaces\HeadersInterface; use function array_keys; use function header; use function header_remove; use function implode; use function sprintf; abstract class Message implements MessageInterface { protected string $protocolVersion = '1.1'; protected static array $validProtocolVersions = [ '1.0' => true, '1.1' => true, '2.0' => true, '2' => true, ]; /** * @var HeadersInterface */ protected $headers; /** * @var StreamInterface */ protected $body; /** * Disable magic setter to ensure immutability * * @param string $name The property name * @param mixed $value The property value * * @return void */ public function __set($name, $value): void { // Do nothing } /** * {@inheritdoc} */ public function getProtocolVersion(): string { return $this->protocolVersion; } /** * @return static * {@inheritdoc} */ public function withProtocolVersion($version) { if (!isset(self::$validProtocolVersions[$version])) { throw new InvalidArgumentException( 'Invalid HTTP version. Must be one of: ' . implode(', ', array_keys(self::$validProtocolVersions)) ); } $clone = clone $this; $clone->protocolVersion = $version; return $clone; } /** * {@inheritdoc} */ public function getHeaders(): array { return $this->headers->getHeaders(true); } /** * {@inheritdoc} */ public function hasHeader($name): bool { return $this->headers->hasHeader($name); } /** * {@inheritdoc} */ public function getHeader($name): array { return $this->headers->getHeader($name); } /** * {@inheritdoc} */ public function getHeaderLine($name): string { $values = $this->headers->getHeader($name); return implode(',', $values); } /** * @return static * {@inheritdoc} */ public function withHeader($name, $value) { $clone = clone $this; $clone->headers->setHeader($name, $value); if ($this instanceof Response && $this->body instanceof NonBufferedBody) { header(sprintf('%s: %s', $name, $clone->getHeaderLine($name))); } return $clone; } /** * @return static * {@inheritdoc} */ public function withAddedHeader($name, $value) { $clone = clone $this; $clone->headers->addHeader($name, $value); if ($this instanceof Response && $this->body instanceof NonBufferedBody) { header(sprintf('%s: %s', $name, $clone->getHeaderLine($name))); } return $clone; } /** * @return static * {@inheritdoc} */ public function withoutHeader($name) { $clone = clone $this; $clone->headers->removeHeader($name); if ($this instanceof Response && $this->body instanceof NonBufferedBody) { header_remove($name); } return $clone; } /** * {@inheritdoc} */ public function getBody(): StreamInterface { return $this->body; } /** * @return static * {@inheritdoc} */ public function withBody(StreamInterface $body) { $clone = clone $this; $clone->body = $body; return $clone; } }