Insomnia-Script-SDK-Docs
    Preparing search index...

    Class HeaderList<T>

    Represents a list of headers, extending the functionality of PropertyList. This class provides methods to manage and interact with a collection of headers.

    Type Parameters

    • T extends Header

      A type that extends the Header class.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _kind: string = 'PropertyList'
    list: T[] = []
    parent: undefined | Property | PropertyList<any>
    typeClass: { _index?: string }

    Methods

    • Calculates the total size of all headers in the list.

      This method maps each header to its string representation, calculates the length of each string, and sums up the lengths to determine the total size.

      Returns number

      The total size of all headers as a number.