$boundary
$boundary :
Stream that when read returns bytes for a streaming multipart or multipart/form-data stream.
__construct(array $elements = array(), string $boundary = null)
| array | $elements | Array of associative arrays, each containing a required "name" key mapping to the form field, name, a required "contents" key mapping to a StreamInterface/resource/string, an optional "headers" associative array of custom headers, and an optional "filename" key mapping to a string to send as the filename in the part. |
| string | $boundary | You can optionally provide a specific boundary |
__get(string $name) : \Psr\Http\Message\StreamInterface
Magic method used to create a new stream if streams are not added in the constructor of a decorator (e.g., LazyOpenStream).
| string | $name | Name of the property (allows "stream" only). |
addElement(\GuzzleHttp\Psr7\AppendStream $stream, array $element)
| \GuzzleHttp\Psr7\AppendStream | $stream | |
| array | $element |
createElement( $name, \Psr\Http\Message\StreamInterface $stream, $filename, array $headers) : array
| $name | ||
| \Psr\Http\Message\StreamInterface | $stream | |
| $filename | ||
| array | $headers |