Yoast\WP\SEO\AI_HTTP_Request\Domain
Request::__construct
Constructor for the Request class.
Метод класса: Request{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Request = new Request(); $Request->__construct( $action_path, $body, $headers, $is_post );
- $action_path(строка) (обязательный)
- The action path for the request.
- $body(array
) - The body of the request.
По умолчанию:[] - $headers(array
) - The headers for the request.
По умолчанию:[] - $is_post(true|false)
- Whether the request is a POST request.
По умолчанию:true
Код Request::__construct() Request:: construct Yoast 27.7
public function __construct( string $action_path, array $body = [], array $headers = [], bool $is_post = true ) {
$this->action_path = $action_path;
$this->body = $body;
$this->headers = $headers;
$this->is_post = $is_post;
}