- hthvFlatten<TNameMode, TTagMode, TParamsMode>(items): HthvItems<TNameMode, TTagMode, TParamsMode>
-
Type Parameters
-
TNameMode extends "has-name" | "no-name"
-
TTagMode extends "has-tag" | "no-tag"
-
TParamsMode extends "has-params" | "no-params"
Parameters
-
items: HthvItem<TNameMode, TTagMode, TParamsMode>[]
Returns HthvItems<TNameMode, TTagMode, TParamsMode>
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: