Interface Accept

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

Hierarchy

Properties

Properties

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: string

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

weight: number

Weight of the preference [0, 1].