Open RomainMazB opened 1 month ago
This PR expands a MultipartStream element with a nested array contents into multiple separated and well-formed elements.
MultipartStream
contents
Basically, this:
[ 'name' => 'foo', 'contents' => [ ['key' => 'bar'], ['key' => 'baz'] ] ]
results into this:
--boundary Content-Disposition: form-data; name=foo[0][key] Content-Length: 3 bar --boundary Content-Disposition: form-data; name=foo[1][key] Content-Length: 3 baz --boundary--
This is an attempt to ease the DX for Guzzle, see https://github.com/guzzle/guzzle/issues/3260
This PR expands a
MultipartStream
element with a nested arraycontents
into multiple separated and well-formed elements.Basically, this:
results into this:
This is an attempt to ease the DX for Guzzle, see https://github.com/guzzle/guzzle/issues/3260