Stream that when read returns bytes for a streaming multipart or
multipart/form-data stream.
Cloneable
Instantiable
-
Implements
Psr\Http\Message\StreamInterface Stringable - Traits
Methods |
public
__call
(
$method
,
array
$args
) Allow decorators to implement custom methods
|
public
__construct
(
array
$elements
=
[
]
,
$boundary
=
NULL
)
|
public
__get
(
$name
) Magic method used to create a new stream if streams are not added in
|
public __toString () : string |
public close () |
public detach () |
public eof () |
public
getBoundary
() Get the boundary
|
public getContents () |
public getMetadata ( $key = NULL ) |
public getSize () |
public isReadable () |
public isSeekable () |
public isWritable () |
public read ( $length ) |
public rewind () |
public seek ( $offset , $whence = 0 ) |
public tell () |
public write ( $string ) |
Methods |
protected
createStream
(
array
$elements
) Create the aggregate stream that will be used to upload the POST data |
Properties |
private $boundary |
Methods |
private addElement ( GuzzleHttp\Psr7\AppendStream $stream , array $element ) |
private
createElement
(
$name
,
Psr\Http\Message\StreamInterface
$stream
,
$filename
,
array
$headers
)
|
private getHeader ( array $headers , $key ) |
private
getHeaders
(
array
$headers
) Get the headers needed before transferring the content of a POST file |