Requests_Transport::request()publicWP 1.0

Perform a request

Метод класса: Requests_Transport{}

Хуков нет.


Строку. Raw HTTP result


$Requests_Transport = new Requests_Transport();
$Requests_Transport->request( $url, $headers, $data, $options );
$url(строка) (обязательный)
URL to request
Associative array of request headers
По умолчанию: array()
Data to send either as the POST body, or as parameters in the URL for a GET/HEAD
По умолчанию: array()
Request options, see {@see Requests::response()} for documentation
По умолчанию: array()

Код Requests_Transport::request() WP 6.1.1

public function request($url, $headers = array(), $data = array(), $options = array());