Property | Type | Description | |
---|---|---|---|
$last_request | |||
$sent_body | |||
$sent_headers |
Method | Description | |
---|---|---|
__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 ) |
public dispatch ( WP_REST_Request $request ) : WP_REST_Response | ||
$request | WP_REST_Request | |
return | WP_REST_Response | Response returned by the callback. |
public get_raw_endpoint_data ( ) : array | ||
return | array |