Property | Type | Description | |
---|---|---|---|
$response |
Method | Description | |
---|---|---|
__construct ( array | string $response ) | Constructor for a REST response, sets the intended response for the request | |
get ( ) | ||
get_accept ( ) | ||
get_best_mime ( array $mime_types = null ) : null | string | Determine the best mimetype to respond to the client with based on the accept header and the mimetypes available | |
get_mime_list ( ) | ||
out ( ) | Output the response |
public __construct ( array | string $response ) | ||
$response | array | string | The intended response to the REST request |