Download src/Presentation/Response/HtmlResponse.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 760 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Presentation/Response/HtmlResponse.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/src/Presentation/Response/HtmlResponse.php
-
curl -L -o HtmlResponse.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Presentation/Response/HtmlResponse.php
760 Bytes
| declare(strict_types=1); | |
| namespace Presentation\Response; | |
| use Easy\Http\Message\StatusCode; | |
| use Laminas\Diactoros\Exception\InvalidArgumentException; | |
| use Laminas\Diactoros\Response\HtmlResponse as BaseResponse; | |
| use Psr\Http\Message\ResponseInterface; | |
| class HtmlResponse extends BaseResponse implements ResponseInterface | |
| { | |
| /** | |
| * @inheritDoc | |
| * @param mixed $html | |
| * @param StatusCode $status | |
| * @param array $headers | |
| * @return void | |
| * @throws InvalidArgumentException | |
| */ | |
| public function __construct( | |
| $html, | |
| StatusCode $status = StatusCode::OK, | |
| array $headers = [] | |
| ) { | |
| parent::__construct( | |
| $html, | |
| $status->value, | |
| $headers | |
| ); | |
| } | |
| } | |