GuzzleHttp\Psr7\MultipartStream::createStream PHP Méthode

createStream() protected méthode

Create the aggregate stream that will be used to upload the POST data
protected createStream ( array $elements )
$elements array
    protected function createStream(array $elements)
    {
        $stream = new AppendStream();
        foreach ($elements as $element) {
            $this->addElement($stream, $element);
        }
        // Add the trailing boundary with CRLF
        $stream->addStream(stream_for("--{$this->boundary}--\r\n"));
        return $stream;
    }