Construct a new JsonResponse.
The JSON data to send in the response body.
Optional
statusCode: number = 200The HTTP response status code to send.
Optional
headers: HeadersInitThe HTTP response headers to send.
Protected
Readonly
bufferFetch the buffer to send in the response body.
Protected
Readonly
headersThe HTTP response headers to send.
Readonly
statusThe HTTP response status code to send.
An HTTP response with a plain text body.