Amp\Artax\FormBody::getBody PHP Method

getBody() public method

AggregateBody::getBody() implementations always return a Promise instance to allow for future resolution of non-blocking operations (e.g. when the entity body comprises filesystem resources).
public getBody ( ) : Amp\Promise
return Amp\Promise
    public function getBody()
    {
        if ($this->isMultipart) {
            $fields = $this->getMultipartFieldArray();
            return $this->generateMultipartIteratorFromFields($fields);
        } else {
            return new Success($this->getFormEncodedBodyString());
        }
    }