WordPress at Your Fingertips
function is not described

Requests_Transport::request() public WP 1.0

Perform a request

{} It's a method of the class: Requests_Transport{}

No Hooks.

Return

String. Raw HTTP result

Usage

$Requests_Transport = new Requests_Transport();
$Requests_Transport->request( $url, $headers, $data, $options );
$url(string) (required)
URL to request
$headers(array)
Associative array of request headers
$data(string|array)
Data to send either as the POST body, or as parameters in the URL for a GET/HEAD
$options(array)
Request options, see {@see Requests::response()} for documentation

Code of Requests_Transport::request() WP 5.7.2

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