MultipartValue
final class MultipartValue
Methods
__construct(string $name, mixed $value, string|null $filename = null, array $headers = [])
Create a multipart value.
array|bool|float|int|StreamInterface|string|null
contents()
Get the contents to add to a multipart stream.
Details
at line 27
__construct(string $name, mixed $value, string|null $filename = null, array $headers = [])
Create a multipart value.
Guzzle expands an array value into one field per element, named with brackets such as roles[0], so an array
cannot have a filename or headers.
at line 53
array|bool|float|int|StreamInterface|string|null
contents()
Get the contents to add to a multipart stream.