Psr7 stream decorator implementation providing a readable stream for a part's
headers.
HeaderStream is only used by a MimePart parent. It can accept any
MessagePart - for non-MimeParts, only type headers are generated based on
available information.
- author Zaahid Bateson
CloneableInstantiable
- Implements
Psr\Http\Message\StreamInterface SplObserver Stringable - Traits
Methods |
public __call(string $method, array $args) Allow decorators to implement custom methods |
public __construct(ZBateson |
public __destruct() |
public __get(string $name) Magic method used to create a new stream if streams are not added in |
public __toString() : string |
public close() : void |
public detach() |
public eof() : bool |
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 update(SplSubject $subject)
|
public write( $string) : int |
public writePartHeadersTo(Psr\Http\Message\StreamInterface $stream) Writes out headers for $this->part and follows them with an empty line.
|
Properties |
protected $part
|
Methods |
protected createStream() Creates the underlying stream lazily when required. |
Methods |
private getPartHeadersIterator() Returns a header array for the current part. If the part is not a MimePart, Content-Type, Content-Disposition and |