| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- declare(strict_types=1);
- /**
- * This file is part of Hyperf.
- *
- * @link https://www.hyperf.io
- * @document https://hyperf.wiki
- * @contact group@hyperf.io
- * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
- */
- namespace Hyperf\Engine\Http;
- use Hyperf\Engine\Contract\Http\RawResponseInterface;
- final class RawResponse implements RawResponseInterface
- {
- /**
- * @param string[][] $headers
- */
- public function __construct(public int $statusCode, public array $headers, public string $body, public string $version)
- {
- }
- public function getStatusCode(): int
- {
- return $this->statusCode;
- }
- public function getHeaders(): array
- {
- return $this->headers;
- }
- public function getBody(): string
- {
- return $this->body;
- }
- public function getVersion(): string
- {
- return $this->version;
- }
- }
|