Summery Summery
Send multiple HTTP requests simultaneously
Syntax Syntax
Parameters Parameters
- $requests
-
(Required) Requests data (see Requests::request_multiple)
- $options
-
(Optional) Global and default options (see Requests::request)
Default value: array()
Return Return
(array) Responses (either Requests_Response or a Requests_Exception object)
Source Source
File: wp-includes/Requests/Session.php
public function request_multiple($requests, $options = array()) { foreach ($requests as $key => $request) { $requests[$key] = $this->merge_request($request, false); } $options = array_merge($this->options, $options); // Disallow forcing the type, as that's a per request setting unset($options['type']); return Requests::request_multiple($requests, $options); }