WordPress at a glance
function is not described

Requests_Session::request_multiple() public WP 1.0

Send multiple HTTP requests simultaneously

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

No Hooks.

Return

Array. Responses (either Requests_Response or a Requests_Exception object)

Usage

$Requests_Session = new Requests_Session();
$Requests_Session->request_multiple( $requests, $options );
$requests(array) (required)
Requests data (see Requests::request_multiple)
$options(array)
Global and default options (see Requests::request)
Default: array()

Notes

  • See: Requests::request_multiple()

Code of Requests_Session::request_multiple() WP 5.5.1

<?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);
}