Allow to parse a list with quality values formatted as strings
per RFC 7231, section 5.3.1.
e.g. "a,b;q=0.1,c;q=0.4" is parsed as a list of WeightedValue:
- (a, 1.0)
- (b, 0.1)
- (c, 0.4)
This is the format used for the ACCEPT_LANGUAGE HTTP header.
Differential D1634
Get accepted languages from HTTP request dereckson on Apr 30 2018, 12:27. Authored by Tags None Referenced Files
Subscribers None
Details
Allow to parse a list with quality values formatted as strings e.g. "a,b;q=0.1,c;q=0.4" is parsed as a list of WeightedValue:
This is the format used for the ACCEPT_LANGUAGE HTTP header. Unit tests provided
Diff Detail
|