Function: jsonHttpResponse()
Function: jsonHttpResponse()
function jsonHttpResponse(
content,
statusCode,
headers): JsonResponse;
Create a 200(OK) JSON OutgoingHttpResponse.
Parameters
content
unknown
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 JsonResponse.