Psr7 stream decorator implementation providing a readable stream for a part's

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.

public __call(string $method, array $args)

Allow decorators to implement custom methods

public __construct(ZBateson\MailMimeParser\Message\IMessagePart $part)
public __destruct()
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 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.

protected $part
protected createStream()

Creates the underlying stream lazily when required.

private getPartHeadersIterator()

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.

© 2023 Bruce Wells
Search Namespaces \ Classes