Function parseAcceptEncoding

  • Parses an Accept-Encoding header string.

    Parameters

    • input: string

      The Accept-Encoding header string.

    • strict: boolean = false

      Determines if invalid values throw errors (true) or log warnings (false). Defaults to false.

    Returns AcceptEncoding[]

    An array of AcceptEncoding objects, sorted by weight. Invalid ranges are ignored and not returned.