PATH:
home
/
lab2454c
/
tripvare.com
/
backup
/
vendor
/
php-http
/
message
/
src
/
Authentication
<?php namespace Http\Message\Authentication; use Http\Message\Authentication; use Psr\Http\Message\RequestInterface; class Header implements Authentication { /** * @var string */ private $name; /** * @var string|array */ private $value; public function __construct(string $name, $value) { $this->name = $name; $this->value = $value; } /** * {@inheritdoc} */ public function authenticate(RequestInterface $request) { return $request->withHeader($this->name, $this->value); } }
[-] QueryParam.php
[edit]
[+]
..
[-] BasicAuth.php
[edit]
[-] AutoBasicAuth.php
[edit]
[-] Wsse.php
[edit]
[-] Chain.php
[edit]
[-] Header.php
[edit]
[-] Matching.php
[edit]
[-] Bearer.php
[edit]
[-] RequestConditional.php
[edit]