403Webshell
Server IP : 104.21.84.107  /  Your IP : 104.23.197.208
Web Server : Apache/2.4.63 (Ubuntu)
System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.4.5
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/php/Slim/Psr7/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/php/Slim/Psr7/Header.php
<?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 function array_merge;
use function is_string;

class Header
{
    private string $originalName;

    private string $normalizedName;

    private array $values;

    public function __construct(string $originalName, string $normalizedName, array $values)
    {
        $this->originalName = $originalName;
        $this->normalizedName = $normalizedName;
        $this->values = $values;
    }

    public function getOriginalName(): string
    {
        return $this->originalName;
    }

    public function getNormalizedName(): string
    {
        return $this->normalizedName;
    }

    public function addValue(string $value): self
    {
        $this->values[] = $value;

        return $this;
    }

    public function addValues(array|string $values): self
    {
        if (is_string($values)) {
            return $this->addValue($values);
        }

        $this->values = array_merge($this->values, $values);

        return $this;
    }

    public function getValues(): array
    {
        return $this->values;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit