PHP Класс Spy_REST_Server

Наследование: extends WP_REST_Server
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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