$boundary
$boundary
Stream that when read returns bytes for a streaming multipart or multipart/form-data stream.
__construct(array $elements = [], string $boundary = null) : mixed
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). |