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
- Extends
- Implements
Psr\Http\Message\StreamInterface SplObserver Stringable - Traits
Methods |
public __construct(ZBateson |
public __destruct() |
public update(SplSubject $subject) : void |
public writePartHeadersTo(Psr\Http\Message\StreamInterface $stream) : static Writes out headers for $this->part and follows them with an empty line. |
Properties |
protected ZBateson
|
Methods |
protected createStream() : Psr\Http\Message\StreamInterface Creates the underlying stream lazily when required. |
Methods |
private getPartHeadersIterator() : Traversable Returns a header array for the current part. If the part is not a MimePart, Content-Type, Content-Disposition and Content-Transfer-Encoding headers are generated manually. |