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

    Class DomainList

    Represents a list of route domains.

    Implements

    • Iterable<string>
    Index
    • Creates a new domain list.

      Parameters

      • Optionaldomains: Iterable<string, any, any>

        The domains to initialize the list with.

      Returns DomainList

      domains is null.

    onChanged: (() => void) | null = null

    Invoked when the domain list changes.

    • get isReadOnly(): boolean

      Whether this list is read-only.

      Returns boolean

    • Gets the domain at the specified index.

      Parameters

      • index: number

      Returns string

    • Sets the domain at the specified index.

      Parameters

      • index: number
      • domain: string

      Returns void

    • Gets the index of the requested domain, or -1 if it is not found.

      Parameters

      • domain: string

      Returns number

    • Inserts a domain at the specified index.

      Parameters

      • index: number
      • domain: string

      Returns void

    • Removes the domain at the specified index.

      Parameters

      • index: number

      Returns void

    • Adds a domain to the list.

      Parameters

      • domain: string

      Returns void

    • Determines whether the list contains the specified domain.

      Parameters

      • domain: string

      Returns boolean

    • Copies the domains to an array.

      Parameters

      • array: string[]
      • arrayIndex: number

      Returns void

    • Removes a domain from the list.

      Parameters

      • domain: string

      Returns boolean

    • Returns Iterator<string>

    • Attempts to parse a domain list from a byte range.

      Parameters

      • buffer: Uint8Array

        The input buffer.

      • cursor: ParseCursor

        The current parse cursor.

      • endIndex: number

        The end index of the input range.

      Returns Result<DomainList>

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