werkzeug.Accept.best_match¶
-
Accept.
best_match
(matches, default=None)[source]¶ Returns the best match from a list of possible matches based on the quality of the client. If two items have the same quality, the one is returned that comes first.
Parameters: - matches – a list of matches to check for
- default – the value that is returned if none match