Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a single preference in a request.

Hierarchy

  • RepresentationPreference

Index

Properties

Properties

value

value: string

The actual preference value.

weight

weight: number

How preferred this value is in a number going from 0 to 1. Follows the quality values rule from RFC 7231:

"The weight is normalized to a real number in the range 0 through 1, where 0.001 is the least preferred and 1 is the most preferred; a value of 0 means "not acceptable"."