JsonResponse
final class JsonResponse implements Response
JSON response used mainly for AJAX requests.
Methods
__construct(mixed $payload, string $contentType = 'application/json')
No description
mixed
getPayload()
No description
string
getContentType()
Returns the MIME content type of a downloaded file.
void
send(IRequest $httpRequest, IResponse $httpResponse)
Sends response to output.
Details
at line 18
__construct(mixed $payload, string $contentType = 'application/json')
No description
at line 25
mixed
getPayload()
No description
at line 34
string
getContentType()
Returns the MIME content type of a downloaded file.
at line 43
void
send(IRequest $httpRequest, IResponse $httpResponse)
Sends response to output.