• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress core a2z

WordPress core a2z

WordPress core only

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Classes / WP_REST_Server

Methods

1 to 30 of 30
  • WP_REST_Server::__construct() – Instantiates the REST server.
  • WP_REST_Server::check_authentication() – Checks the authentication headers if supplied.
  • WP_REST_Server::dispatch() – Matches the request to a callback and call it.
  • WP_REST_Server::embed_links() – Embeds the links from the data into the request.
  • WP_REST_Server::envelope_response() – Wraps the response in an envelope.
  • WP_REST_Server::error_to_response() – Converts an error to a response object.
  • WP_REST_Server::get_compact_response_links() – Retrieves the CURIEs (compact URIs) used for relations.
  • WP_REST_Server::get_data_for_route() – Retrieves publicly-visible data for the route.
  • WP_REST_Server::get_data_for_routes() – Retrieves the publicly-visible data for routes.
  • WP_REST_Server::get_headers() – Extracts headers from a PHP-style $_SERVER array.
  • WP_REST_Server::get_index() – Retrieves the site index.
  • WP_REST_Server::get_json_last_error() – Returns if an error occurred during most recent JSON encode/decode.
  • WP_REST_Server::get_max_batch_size() – Gets the maximum number of requests that can be included in a batch.
  • WP_REST_Server::get_namespace_index() – Retrieves the index for a namespace.
  • WP_REST_Server::get_namespaces() – Retrieves namespaces registered on the server.
  • WP_REST_Server::get_raw_data() – Retrieves the raw request entity (body).
  • WP_REST_Server::get_response_links() – Retrieves links from a response.
  • WP_REST_Server::get_route_options() – Retrieves specified options for a route.
  • WP_REST_Server::get_routes() – Retrieves the route map.
  • WP_REST_Server::json_error() – Retrieves an appropriate error representation in JSON.
  • WP_REST_Server::match_request_to_handler() – Matches a request object to it’s handler.
  • WP_REST_Server::register_route() – Registers a route to the server.
  • WP_REST_Server::remove_header() – Removes an HTTP header from the current response.
  • WP_REST_Server::respond_to_request() – Dispatches the request to the callback handler.
  • WP_REST_Server::response_to_data() – Converts a response to data to send.
  • WP_REST_Server::send_header() – Sends an HTTP header.
  • WP_REST_Server::send_headers() – Sends multiple HTTP headers.
  • WP_REST_Server::serve_batch_request_v1() – Serves the batch/v1 request.
  • WP_REST_Server::serve_request() – Handles serving a REST API request.
  • WP_REST_Server::set_status() – Sends an HTTP status code.

Extended by

Class name: WP_REST_Server
Plugin ref: WordPress
Version: 5.6
Sourcefile: wp-includes/rest-api/class-wp-rest-server.php
File ref: wp-includes/rest-api/class-wp-rest-server.php
API Letters: R,S,W

Published: 25th November 2019 | Last updated: 9th December 2020

Primary Sidebar

Information

Class name: WP_REST_Server
Plugin ref: WordPress
Version: 5.6
Sourcefile: wp-includes/rest-api/class-wp-rest-server.php
File ref: wp-includes/rest-api/class-wp-rest-server.php
API Letters: R,S,W

Footer

WP-a2z
WordPress core a2z
WordPress core only
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  core.wp-a2z.org
© Copyright WP-a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites