Std.Http.parsePreferences
1 declaration
fn
parsePreferences: Str -> Array[Std.Http.Preference]This is a callable function.
What it does
An accept-style header read into choices, best first.
Weights are read in thousandths so they can be compared as whole numbers; a
choice with no weight is worth one, as the protocol says.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- Names inside [ ] are type arguments, such as the item type held by a collection.
