Options
All
  • Public
  • Public/Protected
  • All
Menu

Contents of an HTTP Accept header. Range is type/subtype. Both can be *.

Hierarchy

Index

Properties

Properties

parameters

parameters: { extension: Record<string, string>; mediaType: Record<string, string> }

Type declaration

  • extension: Record<string, string>

    Extension parameters. These are the parameters that came after the q value. Value will be an empty string if there was none.

  • mediaType: Record<string, string>

    Media type parameters. These are the parameters that came before the q value.

range

range: string

Requested range. Can be a specific value or *, matching all.

weight

weight: number

Weight of the preference [0, 1].