PHP 클래스 Habari\RestResponse

파일 보기 프로젝트 열기: habari/system

보호된 프로퍼티들

프로퍼티 타입 설명
$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