Produces an HTML response with a Content-Type of text/html and a default
status of 200.
public __construct ( string | Psr\Http\Message\StreamInterface $html, integer $status = 200, array $headers = [] ) | ||
$html | string | Psr\Http\Message\StreamInterface | HTML or stream for the message body. |
$status | integer | Integer status code for the response; 200 by default. |
$headers | array | Array of headers to use at initialization. |