New and updated in 4.4.0
-
Sets HTTP method for the request.
-
Retrieves all headers from the request.
-
Canonicalizes the header name.
-
Retrieves the given header from the request.
-
Sets the handler that was responsible for generating the response.
Used by 0 functions | Uses 0 functions | Source: wp-includes/rest-api/class-wp-rest-response.php:203 -
Checks if the response is an error, i.e. >= 400 response code.
-
Retrieves a WP_Error object from the response.
Used by 0 functions | Uses 2 functions | Source: wp-includes/rest-api/class-wp-rest-response.php:225 -
classWP_REST_Request
Core class used to implement a REST request object.
-
Retrieves the route that was used.
Used by 0 functions | Uses 0 functions | Source: wp-includes/rest-api/class-wp-rest-response.php:170 -
Sets the route (regex for path) that caused the response.
Used by 0 functions | Uses 0 functions | Source: wp-includes/rest-api/class-wp-rest-response.php:181 -
Retrieves the handler that was used to generate the response.
Used by 0 functions | Uses 0 functions | Source: wp-includes/rest-api/class-wp-rest-response.php:192 -
Extracts headers from a PHP-style $_SERVER array.
-
classWP_REST_Response
Core class used to implement a REST response object.
-
Adds a link to the response.
-
Removes a link from the response.
-
Adds multiple links to the response.
-
Retrieves links for the response.
Used by 0 functions | Uses 0 functions | Source: wp-includes/rest-api/class-wp-rest-response.php:131 -
Sets a single link header.
Used by 0 functions | Uses 0 functions | Source: wp-includes/rest-api/class-wp-rest-response.php:150 -
Retrieves the raw request entity (body).
-
Retrieves the publicly-visible data for routes.
-
Filters the publicly-visible data for a single REST API route.
-
hookrest_route_data
Filters the publicly-visible data for REST API routes.
-
Retrieves publicly-visible data for the route.
-
Sends an HTTP status code.
-
Sends an HTTP header.
-
Sends multiple HTTP headers.
-
Retrieves the site index.
Used by 0 functions | Uses 10 functions | Source: wp-includes/rest-api/class-wp-rest-server.php:1365 -
hookrest_index
Filters the REST API root index data.
-
Retrieves the index for a namespace.
-
Filters the REST API namespace index data.