Yoast\WP\SEO\AI_HTTP_Request\Application

Request_Handler_Interface{}interfaceYoast 1.0

Хуков нет.

Использование

$Request_Handler_Interface = new Request_Handler_Interface();
// use class methods

Методы

  1. public handle( Request $request )
  2. ERROR: no method name found on line ``

Код Request_Handler_Interface{} Yoast 28.3

interface Request_Handler_Interface {

	/**
	 * Executes the request to the API.
	 *
	 * @param Request $request The request to execute.
	 *
	 * @return Response The response from the API.
	 *
	 * @throws Bad_Request_Exception When the request fails for any other reason.
	 * @throws Forbidden_Exception When the response code is 403.
	 * @throws Internal_Server_Error_Exception When the response code is 500.
	 * @throws Not_Found_Exception When the response code is 404.
	 * @throws Payment_Required_Exception When the response code is 402.
	 * @throws Request_Timeout_Exception When the response code is 408.
	 * @throws Service_Unavailable_Exception When the response code is 503.
	 * @throws Too_Many_Requests_Exception When the response code is 429.
	 * @throws Unauthorized_Exception When the response code is 401.
	 */
	public function handle( Request $request ): Response;
}