public function getBody();
private function processAggregateBody(RequestCycle $cycle, AggregateBody $body) { $promise = $body->getBody($this->reactor); $promise->when(function ($error, $result) use($cycle, $body) { if ($error) { $this->fail($cycle, $error); } else { $cycle->request->setBody($result); $this->processAggregateBodyHeaders($cycle, $body); } }); }