JsonResponse
final class JsonResponse implements Response
JSON response used mainly for AJAX requests.
Methods
__construct($payload, string|null $contentType = null)
No description
mixed
getPayload()
No description
string
getContentType()
Returns the MIME content type of a downloaded file.
Details
at line 27
__construct($payload, string|null $contentType = null)
No description
at line 34
mixed
getPayload()
No description
at line 43
string
getContentType()
Returns the MIME content type of a downloaded file.
Traits
Strict class for better experience.