MimeStreamReader

open class MimeStreamReader : ByteStream, @unchecked Sendable

Stream for parsing MIME multipart/mixed messages.

See also

RFC 2046.
  • Declaration

    Swift

    override open func close() throws
  • Declaration

    Swift

    open class func newMultipart(boundary: String, stream: ByteStream) -> MimeStreamReader

    Parameters

    boundary

    MIME boundary string.

    stream

    Stream containing MIME message. Will be consumed by readByte and nextPart calls.

    Return Value

    a new MIME stream for an outer multipart/mixed message.

  • Declaration

    Swift

    open func nextPart() throws -> MimePart?

    Return Value

    The next MimePart in the stream, or nil if no more parts are available.

  • Declaration

    Swift

    override open func readByte() throws -> Int