@stephen-shopopop/node-metrics
    Preparing search index...

    Function parseAndCoerceHeaders

    • Parses a flat array of raw HTTP headers into an array of key-value pairs, coercing each header into a tuple of [string, string].

      Skips headers whose key starts with a colon (':') or whose value is undefined.

      Parameters

      • rawHeaders: readonly string[]

        A readonly array of strings representing raw HTTP headers, where each even index is a header name and the following odd index is its value.

      Returns [string, string][]

      An array of [key, value] tuples representing the parsed headers.