[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/laminas/laminas-diactoros/src/Response/ -> HtmlResponse.php (summary)

(no description)

Copyright: https://github.com/laminas/laminas-diactoros/blob/master/COPYRIGHT.md
License: https://github.com/laminas/laminas-diactoros/blob/master/LICENSE.md New BSD License
File Size: 80 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

HtmlResponse:: (2 methods):
  __construct()
  createBody()


Class: HtmlResponse  - X-Ref

HTML response.

Allows creating a response by passing an HTML string to the constructor;
by default, sets a status code of 200 and sets the Content-Type header to
text/html.
__construct($html, int $status = 200, array $headers = [])   X-Ref
Create an HTML response.

Produces an HTML response with a Content-Type of text/html and a default
status of 200.

param: string|StreamInterface $html HTML or stream for the message body.
param: int $status Integer status code for the response; 200 by default.
param: array $headers Array of headers to use at initialization.

createBody($html)   X-Ref
Create the message body.

param: string|StreamInterface $html



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer