__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?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 function array_merge;
use function is_array;
use function is_string;
class Header
{
private string $originalName;
private string $normalizedName;
private array $values;
/**
* Header constructor.
*
* @param string $originalName
* @param string $normalizedName
* @param array $values
*/
public function __construct(string $originalName, string $normalizedName, array $values)
{
$this->originalName = $originalName;
$this->normalizedName = $normalizedName;
$this->values = $values;
}
/**
* @return string
*/
public function getOriginalName(): string
{
return $this->originalName;
}
/**
* @return string
*/
public function getNormalizedName(): string
{
return $this->normalizedName;
}
/**
* @param string $value
*
* @return self
*/
public function addValue(string $value): self
{
$this->values[] = $value;
return $this;
}
/**
* @param array|string $values
*
* @return self
*/
public function addValues($values): self
{
if (is_string($values)) {
return $this->addValue($values);
}
if (!is_array($values)) {
throw new InvalidArgumentException('Parameter 1 of Header::addValues() should be a string or an array.');
}
$this->values = array_merge($this->values, $values);
return $this;
}
/**
* @return array
*/
public function getValues(): array
{
return $this->values;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Factory | Folder | 0755 |
|
|
| Interfaces | Folder | 0755 |
|
|
| Cookies.php | File | 5.23 KB | 0644 |
|
| Environment.php | File | 1.51 KB | 0644 |
|
| Header.php | File | 1.81 KB | 0644 |
|
| Headers.php | File | 8.64 KB | 0644 |
|
| Message.php | File | 3.75 KB | 0644 |
|
| NonBufferedBody.php | File | 2.45 KB | 0644 |
|
| Request.php | File | 8.51 KB | 0644 |
|
| Response.php | File | 8.44 KB | 0644 |
|
| Stream.php | File | 8.67 KB | 0644 |
|
| UploadedFile.php | File | 8.13 KB | 0644 |
|
| Uri.php | File | 11.8 KB | 0644 |
|
| autoload.php | File | 1.98 KB | 0644 |
|