classafBedSheet::QualityValues
sys::Obj afBedSheet::QualityValues
Parses a Str of HTTP qvalues as per HTTP 1.1 Spec / rfc2616-sec14.3. Provides some useful accessor methods; like `QualityValues.accepts` which returns true only if the name exists AND has a qvalue greater than 0.0.
@see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.3
- accepts
- Returns - trueif the name was supplied in the header AND has a qvalue > 0.0
- contains
- Returns - trueif- namewas supplied in the header
- fromStr
- static new fromStr(Str? header, Bool checked := true)- Parses a HTTP header value into a - name:qvaluemap. Throws- ParseErrif the header Str is invalid.
- get
- Returns the qvalue associated with - name. Defaults to- 0if- namewas not supplied.
- isEmpty
- Bool isEmpty()- Returns - size() == 0
- size
- Int size()- Returns the number of values given in the header 
- toMap
- Returns a dup of the internal - name:qvaluemap
- toStr
- virtual override Str toStr()- Returns a joined-up Str of qvalues that may be set in a HTTP header. The names are sorted by qvalue.