src/Guzzle/Http/Client.php
protected function sendMultiple(array $requests)
    {
        $curlMulti = $this->getCurlMulti();
        foreach ($requests as $request) {
            $curlMulti->add($request);
        }
        $curlMulti->send();

        /** @var $request RequestInterface */
        $result = array();
        foreach ($requests as $request) {
            $result[] = $request->getResponse();
        }

        return $result;
    }
protected function sendMultiple(array $requests)
    {
        $curlMulti = $this->getCurlMulti();
        foreach ($requests as $request) {
            $curlMulti->add($request);
        }
        $curlMulti->send();

        /** @var $request RequestInterface */
        $result = array();
        foreach ($requests as $request) {
            $result[] = $request->getResponse();
        }

        return $result;
    }
protected function sendMultiple ( array $ requests ) { $ curlMulti = $ this -> getCurlMulti ( ) ; foreach ( $ requests as $ request ) { $ curlMulti -> add ( $ request ) ; } $ curlMulti -> send ( ) ; /** @var $request RequestInterface */ $ result = array ( ) ; foreach ( $ requests as $ request ) { $ result [ ] = $ request -> getResponse ( ) ; } return $ result ; }
Send multiple requests in parallel

@param array $requests Array of RequestInterface objects

@return array Returns an array of Response objects
Send multiple requests in parallel