werkzeug.CharsetAccept

class werkzeug.CharsetAccept(values=())[source]

Like Accept but with normalization for charsets.

Methods

__init__([values])
append(item)
best_match(matches[, default]) Returns the best match from a list of possible matches based on the quality of the client.
count(...)
extend(iterable)
find(key) Get the position of an entry or return -1.
index(key) Get the position of an entry or raise ValueError.
insert(pos, value)
itervalues() Iterate over all values.
pop([index])
quality(key) Returns the quality of the key.
remove(item)
reverse()
sort([cmp, key, reverse])
to_header() Convert the header set into an HTTP header string.
values(*a, **kw) Like itervalues(), but returns a list.

Attributes

best The best match as value.