Interface HthvItems<TNameMode, TTagMode, TParamsMode>

HTTP header value items collection.

Contains a map of named items, as well as their list.

This is constructed by hthvFlatten function.

Type Parameters

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

    Whether items has a name.

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

    Whether items has a tag.

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

    Whether items has parameters.

Hierarchy

  • HthvItems

Properties

Properties

list: HthvItem<TNameMode, TTagMode, TParamsMode>[]

A list of items and their parameters.

map: {
    [name: string]: HthvItem<TNameMode, TTagMode, TParamsMode>;
}

A map of HTTP header value items.

When item has no name, then its value is used as a key.

Type declaration

  • [name: string]: HthvItem<TNameMode, TTagMode, TParamsMode>

Generated using TypeDoc