/var/www/vhosts/bsbdokum.com.tr/httpdocs/app/Addition/googlelang/guzzlehttp/psr7/src
NameSizeModeActions
AppendStream.php59120644editdlrm
BufferStream.php31790644editdlrm
CachingStream.php44180644editdlrm
DroppingStream.php11420644editdlrm
FnStream.php44150644editdlrm
Header.php20840644editdlrm
HttpFactory.php30960644editdlrm
InflateStream.php13360644editdlrm
LazyOpenStream.php8990644editdlrm
LimitStream.php42430644editdlrm
Message.php82020644editdlrm
MessageTrait.php66180644editdlrm
MimeType.php43050644editdlrm
MultipartStream.php47820644editdlrm
NoSeekStream.php4700644editdlrm
PumpStream.php45380644editdlrm
Query.php36400644editdlrm
Request.php39000644editdlrm
Response.php49050644editdlrm
Rfc7230.php6650644editdlrm
ServerRequest.php94470644editdlrm
Stream.php72220644editdlrm
StreamDecoratorTrait.php32950644editdlrm
StreamWrapper.php41090644editdlrm
UploadedFile.php48590644editdlrm
Uri.php218090644editdlrm
UriNormalizer.php84190644editdlrm
UriResolver.php85580644editdlrm
Utils.php142300644editdlrm
Edit: /var/www/vhosts/bsbdokum.com.tr/httpdocs/app/Addition/googlelang/guzzlehttp/psr7/src/Request.php (3900B)
$headers Request headers * @param string|resource|StreamInterface|null $body Request body * @param string $version Protocol version */ public function __construct( string $method, $uri, array $headers = [], $body = null, string $version = '1.1' ) { $this->assertMethod($method); if (!($uri instanceof UriInterface)) { $uri = new Uri($uri); } $this->method = strtoupper($method); $this->uri = $uri; $this->setHeaders($headers); $this->protocol = $version; if (!isset($this->headerNames['host'])) { $this->updateHostFromUri(); } if ($body !== '' && $body !== null) { $this->stream = Utils::streamFor($body); } } public function getRequestTarget(): string { if ($this->requestTarget !== null) { return $this->requestTarget; } $target = $this->uri->getPath(); if ($target === '') { $target = '/'; } if ($this->uri->getQuery() != '') { $target .= '?' . $this->uri->getQuery(); } return $target; } public function withRequestTarget($requestTarget): RequestInterface { if (preg_match('#\s#', $requestTarget)) { throw new InvalidArgumentException( 'Invalid request target provided; cannot contain whitespace' ); } $new = clone $this; $new->requestTarget = $requestTarget; return $new; } public function getMethod(): string { return $this->method; } public function withMethod($method): RequestInterface { $this->assertMethod($method); $new = clone $this; $new->method = strtoupper($method); return $new; } public function getUri(): UriInterface { return $this->uri; } public function withUri(UriInterface $uri, $preserveHost = false): RequestInterface { if ($uri === $this->uri) { return $this; } $new = clone $this; $new->uri = $uri; if (!$preserveHost || !isset($this->headerNames['host'])) { $new->updateHostFromUri(); } return $new; } private function updateHostFromUri(): void { $host = $this->uri->getHost(); if ($host == '') { return; } if (($port = $this->uri->getPort()) !== null) { $host .= ':' . $port; } if (isset($this->headerNames['host'])) { $header = $this->headerNames['host']; } else { $header = 'Host'; $this->headerNames['host'] = 'Host'; } // Ensure Host is the first header. // See: http://tools.ietf.org/html/rfc7230#section-5.4 $this->headers = [$header => [$host]] + $this->headers; } /** * @param mixed $method */ private function assertMethod($method): void { if (!is_string($method) || $method === '') { throw new \InvalidArgumentException('Method must be a non-empty string.'); } } }