PHP 클래스 Spy_REST_Server

상속: extends WP_REST_Server
파일 보기 프로젝트 열기: lucatume/wp-browser

공개 프로퍼티들

프로퍼티 타입 설명
$last_request
$sent_body
$sent_headers

공개 메소드들

메소드 설명
__call ( string $method, array $args ) : mixed Allow calling protected methods from tests
dispatch ( WP_REST_Request $request ) : WP_REST_Response Override the dispatch method so we can get a handle on the request object.
get_raw_endpoint_data ( ) : array Get the raw $endpoints data from the server
send_header ( $header, $value )
serve_request ( $path = null )

메소드 상세

__call() 공개 메소드

Allow calling protected methods from tests
public __call ( string $method, array $args ) : mixed
$method string Method to call
$args array Arguments to pass to the method
리턴 mixed

dispatch() 공개 메소드

Override the dispatch method so we can get a handle on the request object.
public dispatch ( WP_REST_Request $request ) : WP_REST_Response
$request WP_REST_Request
리턴 WP_REST_Response Response returned by the callback.

get_raw_endpoint_data() 공개 메소드

Get the raw $endpoints data from the server
public get_raw_endpoint_data ( ) : array
리턴 array

send_header() 공개 메소드

public send_header ( $header, $value )

serve_request() 공개 메소드

public serve_request ( $path = null )

프로퍼티 상세

$last_request 공개적으로 프로퍼티

public $last_request

$sent_body 공개적으로 프로퍼티

public $sent_body

$sent_headers 공개적으로 프로퍼티

public $sent_headers