mimekit-ts - v1.0.0
    Preparing search index...

    Function tryParseDomain

    • Try to parse a domain token or domain literal.

      Parameters

      • text: Uint8Array

        Input byte buffer.

      • cursor: ParseCursor

        Cursor advanced past the parsed domain.

      • endIndex: number

        Exclusive end index.

      • sentinels: Uint8Array

        Bytes that terminate parsing.

      Returns Result<string>

      a Result; { ok: false } with a MimeError on malformed input.