Function: htmlHttpResponse()
Function: htmlHttpResponse()
function htmlHttpResponse(
content,
statusCode,
headers): OutgoingHttpResponse;
Create a 200(OK) HTML OutgoingHttpResponse.
Parameters
content
string
The content of the response.
statusCode
number
= HTTP_OK
The status code of the response.
headers
HeadersType
= {}
The headers for the response.
Returns
A new instance of OutgoingHttpResponse.