Copied!

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

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

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(string $header, ZBateson\MailMimeParser\Message\PartHeaderContainer $headerContainer) : self
 

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

  • param string $header the header line
  • param \PartHeaderContainer $headerContainer the container
© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration