diff --git a/src/ResponseTypes/HtmlResponse.php b/src/ResponseTypes/HtmlResponse.php deleted file mode 100644 index 11a92b9c..00000000 --- a/src/ResponseTypes/HtmlResponse.php +++ /dev/null @@ -1,66 +0,0 @@ -html = $html; - } - - /** - * @param int $statusCode - */ - public function setStatusCode($statusCode = 200) - { - $this->statusCode = $statusCode; - } - - /** - * @param ResponseInterface $response - * - * @return ResponseInterface - */ - public function generateHttpResponse(ResponseInterface $response) - { - $response->getBody()->write($this->html); - - foreach ($this->headers as $key => $value) { - $response = $response->withHeader($key, $value); - } - - return $response - ->withStatus($this->statusCode) - ->withHeader('content-type', 'text/html'); - } - - /** - * @param string $key - * @param string $value - */ - public function setHeader($key, $value) - { - $this->headers[$key] = $value; - } -}