Copied!

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

CloneableFinalInstantiable
Methods
public __call(string $method, array $args)
 

Allow decorators to implement custom methods

public __construct(array $elements = [], ?string $boundary = NULL)
 
public __get(string $name)
 

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

public __toString() : string
public close() : void
public detach()
public eof() : bool
public getBoundary() : string
public getContents() : string
public getMetadata( $key = NULL)
public getSize() : ?int
public isReadable() : bool
public isSeekable() : bool
public isWritable() : bool
public read( $length) : string
public rewind() : void
public seek( $offset, $whence = 0GuzzleHttp\Psr7\SEEK_SET) : void
public tell() : int
public write( $string) : int
Methods
protected createStream(array $elements = []) : Psr\Http\Message\StreamInterface
 

Create the aggregate stream that will be used to upload the POST data

Properties
private $boundary
private $stream
Methods
private addElement(GuzzleHttp\Psr7\AppendStream $stream, array $element) : void
private createElement(string $name, Psr\Http\Message\StreamInterface $stream, ?string $filename, array $headers) : array
private getHeader(array $headers, string $key)
private getHeaders(array $headers) : string
 

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

© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration