Initializes a new MIME parser.
The input stream.
Optionalformat: MimeFormat
The MIME input format.
Optionalpersistent: boolean
Whether parsed content should reference the source stream.
Optionalformat: MimeFormatOptionalpersistent: booleanGets the offset of the current mbox marker, or -1 if none was read.
Gets the current mbox marker line, if one was read.
Gets the current parser position.
Gets or sets parser options.
Gets whether the reader has reached end-of-stream.
Gets the current reader position.
Resets the parser to use a new input stream.
The input stream.
The MIME input format.
Whether parsed content should reference the source stream.
ProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonProtectedonParses a header block.
A Result; { ok: false } with a MimeError on malformed input.
Parses a MIME entity.
A Result; { ok: false } with a MimeError on malformed input.
Parses a MIME message.
A Result; { ok: false } with a MimeError on malformed input.
ProtectedonProtectedonProtectedonProtectedonProtectedon
Parses MIME streams into messages, entities, or headers.
Parser data errors are returned as Result values. Programmer errors, such as invalid constructor arguments, still throw.