Type alias HthvParser<TNameMode, TTagMode, TParamsMode>

HthvParser<TNameMode, TTagMode, TParamsMode>: ((this, value) => HthvItem<TNameMode, TTagMode, TParamsMode>[])

Type Parameters

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

    Whether parsed items have names.

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

    Whether parsed items have tags.

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

    Whether parsed items have parameters.

Type declaration

    • (this, value): HthvItem<TNameMode, TTagMode, TParamsMode>[]
    • HTTP header value parser signature.

      Splits the value onto items.

      Parameters

      • this: void
      • value: string

      Returns HthvItem<TNameMode, TTagMode, TParamsMode>[]

Generated using TypeDoc