PATH:
home
/
lab2454c
/
sothebry.softkinesis.com
/
backups
/
backup
/
core
/
vendor
/
laminas
/
laminas-diactoros
/
src
<?php declare(strict_types=1); namespace Laminas\Diactoros; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\StreamInterface; use Psr\Http\Message\UriInterface; use function strtolower; /** * HTTP Request encapsulation * * Requests are considered immutable; all methods that might change state are * implemented such that they retain the internal state of the current * message and return a new instance that contains the changed state. */ class Request implements RequestInterface { use RequestTrait; /** * @param null|string|UriInterface $uri URI for the request, if any. * @param null|string $method HTTP method for the request, if any. * @param string|resource|StreamInterface $body Message body, if any. * @param array $headers Headers for the message, if any. * @throws Exception\InvalidArgumentException for any invalid value. */ public function __construct($uri = null, string $method = null, $body = 'php://temp', array $headers = []) { $this->initialize($uri, $method, $body, $headers); } /** * {@inheritdoc} */ public function getHeaders() : array { $headers = $this->headers; if (! $this->hasHeader('host') && $this->uri->getHost() ) { $headers['Host'] = [$this->getHostFromUri()]; } return $headers; } /** * {@inheritdoc} */ public function getHeader($header) : array { if (! $this->hasHeader($header)) { if (strtolower($header) === 'host' && $this->uri->getHost() ) { return [$this->getHostFromUri()]; } return []; } $header = $this->headerNames[strtolower($header)]; return $this->headers[$header]; } }
[+]
functions
[-] AbstractSerializer.php
[edit]
[-] ServerRequestFactory.php
[edit]
[-] ConfigProvider.php
[edit]
[+]
..
[+]
Exception
[-] RequestFactory.php
[edit]
[-] MessageTrait.php
[edit]
[-] Request.php
[edit]
[-] UploadedFile.php
[edit]
[-] RelativeStream.php
[edit]
[-] Stream.php
[edit]
[-] RequestTrait.php
[edit]
[-] Module.php
[edit]
[-] PhpInputStream.php
[edit]
[+]
Request
[+]
Response
[-] UriFactory.php
[edit]
[-] UploadedFileFactory.php
[edit]
[-] Uri.php
[edit]
[-] ResponseFactory.php
[edit]
[-] HeaderSecurity.php
[edit]
[-] CallbackStream.php
[edit]
[-] ServerRequest.php
[edit]
[-] StreamFactory.php
[edit]
[-] Response.php
[edit]