WpOrg\Requests
Transport::request()
Perform a request
Method of the class: Transport{}
No Hooks.
Return
String
. Raw HTTP result
Usage
$Transport = new Transport(); $Transport->request( $url, $headers, $data, $options );
- $url(string) (required)
- URL to request
- $headers(array)
- Associative array of request headers
Default: [] - $data(string|array)
- Data to send either as the POST body, or as parameters in the URL for a GET/HEAD
Default: [] - $options(array)
- Request options, see {@see \WpOrg\Requests\Requests::response()} for documentation
Default: []
Transport::request() Transport::request code WP 6.6.2
public function request($url, $headers = [], $data = [], $options = []);