Stream that when read returns bytes for a streaming multipart or multipart/form-data stream.
CloneableFinalInstantiable
- Implements
Psr\Http\Message\StreamInterface Stringable - Traits
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 = NULL
|
private $stream = NULL
|
Methods |
private addElement(GuzzleHttp |
private createElement(string $name, Psr\Http\Message\StreamInterface $stream, ?string $filename, array $headers) : array
|
private static getHeader(array $headers, string $key) : ?string
|
private getHeaders(array $headers) : string Get the headers needed before transferring the content of a POST file
|
Methods |
private static getHeader(array $headers, string $key) : ?string
|