• Flattens HTTP header value items by extracting their parameters.

    The result is an items collection containing original items, as well as their parameters.

    Recursively places items and their parameters to result map in their original order, and:

    • prefers named items over unnamed ones,
    • prefers original items over their parameters,
    • prefers items added first.

    Type Parameters

    • TNameMode extends "has-name" | "no-name"

      Whether items has a name.

    • TTagMode extends "has-tag" | "no-tag"

      Whether items has a tag.

    • TParamsMode extends "has-params" | "no-params"

      Whether items has parameters.

    Parameters

    • items: HthvItem<TNameMode, TTagMode, TParamsMode>[]

      Items collection.

    Returns HthvItems<TNameMode, TTagMode, TParamsMode>

Generated using TypeDoc