PHP 8.2.30
Preview: Header.php Size: 599 B
/home/byroehnu/easetack.com/vendor/php-http/message/src/Authentication/Header.php

<?php

namespace Http\Message\Authentication;

use Http\Message\Authentication;
use Psr\Http\Message\RequestInterface;

class Header implements Authentication
{
    /**
     * @var string
     */
    private $name;

    /**
     * @var string|string[]
     */
    private $value;

    /**
     * @param string|string[] $value
     */
    public function __construct(string $name, $value)
    {
        $this->name = $name;
        $this->value = $value;
    }

    public function authenticate(RequestInterface $request)
    {
        return $request->withHeader($this->name, $this->value);
    }
}

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
1.10 KB lrw-rw-rw- 2024-10-02 11:34:13
Edit Download
869 B lrw-rw-rw- 2024-10-02 11:34:13
Edit Download
658 B lrw-rw-rw- 2024-10-02 11:34:13
Edit Download
1.13 KB lrw-rw-rw- 2024-10-02 11:34:13
Edit Download
599 B lrw-rw-rw- 2024-10-02 11:34:13
Edit Download
1.76 KB lrw-rw-rw- 2024-10-02 11:34:13
Edit Download
1.04 KB lrw-rw-rw- 2024-10-02 11:34:13
Edit Download
951 B lrw-rw-rw- 2024-10-02 11:34:13
Edit Download
1.68 KB lrw-rw-rw- 2024-10-02 11:34:13
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).