Copied!

Reads headers from an input stream, adding them to a PartHeaderContainer.

CloneableInstantiable
Methods
public parse( $handle, ZBateson\MailMimeParser\Message\PartHeaderContainer $container) : static
 

Reads header lines up to an empty line, adding them to the passed PartHeaderContainer.

  • param resource $handle The resource handle to read from.
  • param \PartHeaderContainer $container the container to add headers to.
Methods
private addRawHeaderToPart(int $offset, string $header, ZBateson\MailMimeParser\Message\PartHeaderContainer $headerContainer) : static
 

Ensures the header isn't empty and contains a colon separator character, then splits it and adds it to the passed PartHeaderContainer.

  • param int $offset read offset for error reporting
  • param string $header the header line
  • param \PartHeaderContainer $headerContainer the container
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration