trait JSONResponse (View source)

Provides a simplified method for creating JSON-based HTTPResponses.

Methods

public
jsonResponse(array $body, int $status = 200)

No description

Details

HTTPResponse jsonResponse(array $body, int $status = 200)

No description

Parameters

array $body
int $status

Return Value

HTTPResponse