OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
kreait
/
firebase-php
/
src
/
Firebase
/
Http
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/12/2024 10:35:39 AM
rwxr-xr-x
📄
ErrorResponseParser.php
1.08 KB
08/12/2024 10:35:38 AM
rw-r--r--
📄
HasSubRequests.php
150 bytes
08/12/2024 10:35:38 AM
rw-r--r--
📄
HasSubResponses.php
153 bytes
08/12/2024 10:35:38 AM
rw-r--r--
📄
HttpClientOptions.php
3.36 KB
08/12/2024 10:35:38 AM
rw-r--r--
📄
Middleware.php
4.13 KB
08/12/2024 10:35:38 AM
rw-r--r--
📄
RequestWithSubRequests.php
2.87 KB
08/12/2024 10:35:38 AM
rw-r--r--
📄
Requests.php
1.38 KB
08/12/2024 10:35:38 AM
rw-r--r--
📄
ResponseWithSubResponses.php
2.57 KB
08/12/2024 10:35:38 AM
rw-r--r--
📄
Responses.php
691 bytes
08/12/2024 10:35:38 AM
rw-r--r--
📄
WrappedPsr7Request.php
3.23 KB
08/12/2024 10:35:38 AM
rw-r--r--
📄
WrappedPsr7Response.php
2.52 KB
08/12/2024 10:35:38 AM
rw-r--r--
Editing: WrappedPsr7Response.php
Close
<?php declare(strict_types=1); namespace Kreait\Firebase\Http; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\StreamInterface; /** * @codeCoverageIgnore */ trait WrappedPsr7Response { protected ResponseInterface $wrappedResponse; public function getProtocolVersion(): string { return $this->wrappedResponse->getProtocolVersion(); } public function withProtocolVersion($version): self { $response = clone $this; $response->wrappedResponse = $this->wrappedResponse->withProtocolVersion($version); return $response; } public function getHeaders(): array { return $this->wrappedResponse->getHeaders(); } public function hasHeader($name): bool { return $this->wrappedResponse->hasHeader($name); } public function getHeader($name): array { return $this->wrappedResponse->getHeader($name); } public function getHeaderLine($name): string { return $this->wrappedResponse->getHeaderLine($name); } public function withHeader($name, $value): self { $response = clone $this; $response->wrappedResponse = $this->wrappedResponse->withHeader($name, $value); return $response; } public function withAddedHeader($name, $value): self { $response = clone $this; $response->wrappedResponse = $this->wrappedResponse->withAddedHeader($name, $value); return $response; } public function withoutHeader($name): self { $response = clone $this; $response->wrappedResponse = $this->wrappedResponse->withoutHeader($name); return $response; } public function getBody(): StreamInterface { return $this->wrappedResponse->getBody(); } public function withBody(StreamInterface $body): self { $response = clone $this; $response->wrappedResponse = $this->wrappedResponse->withBody($body); return $response; } public function getStatusCode(): int { return $this->wrappedResponse->getStatusCode(); } public function withStatus($code, $reasonPhrase = ''): self { $response = clone $this; $response->wrappedResponse = $this->wrappedResponse->withStatus($code, $reasonPhrase); return $response; } public function getReasonPhrase(): string { return $this->wrappedResponse->getReasonPhrase(); } }