PHP Класс Habari\RestResponse

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$response

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

Constructor for a REST response, sets the intended response for the request
public __construct ( array | string $response )
$response array | string The intended response to the REST request

get() публичный Метод

public get ( )

get_accept() публичный Метод

public get_accept ( )

get_best_mime() публичный Метод

Determine the best mimetype to respond to the client with based on the accept header and the mimetypes available
public get_best_mime ( array $mime_types = null ) : null | string
$mime_types array An array of available mimetypes
Результат null | string The best mimetype available to return based on the client accept header

get_mime_list() публичный Метод

public get_mime_list ( )

out() публичный Метод

Output the response
public out ( )

Описание свойств

$response защищенное свойство

protected $response