Stream that when read returns bytes for a streaming multipart or
multipart/form-data stream.

CloneableInstantiable
ImplementsPsr\Http\Message\StreamInterface
Methods
public __call( $method, array $args)
 

Allow decorators to implement custom methods

  • return mixed
public __construct(array $elements = [], $boundary = NULL)
 
  • throws InvalidArgumentException
public __get( $name)
 

Magic method used to create a new stream if streams are not added in
the constructor of a decorator (e.g., LazyOpenStream).

  • return StreamInterface
public __toString()
public close()
public detach()
public eof()
public getBoundary()
 

Get the boundary

  • return string
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)
 
  • return array
private getHeader(array $headers, $key)
private getHeaders(array $headers)
 

Get the headers needed before transferring the content of a POST file

© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only