Undocumented
Class | Accept |
An Accept object is just a list subclass for lists of (value, quality) tuples. It is automatically sorted by specificity and quality. |
Class | Authorization |
Represents an Authorization header sent by the client. |
Class | CallbackDict |
A dict that calls a function passed every time something is changed. The function is passed the dict instance. |
Class | CharsetAccept |
Like Accept but with normalization for charsets. |
Class | CombinedMultiDict |
A read only MultiDict that you can pass multiple MultiDict instances as sequence and it will combine the return values of all wrapped dicts: |
Class | ContentRange |
Represents the content range header. |
Class | ContentSecurityPolicy |
Subclass of a dict that stores values for a Content Security Policy header. It has accessors for all the level 3 policies. |
Class | EnvironHeaders |
Read only version of the headers from a WSGI environment. This provides the same interface as Headers and is constructed from a WSGI environment. |
Class | ETags |
A set that can be used to check if one etag is present in a collection of etags. |
Class | FileMultiDict |
A special MultiDict that has convenience methods to add files to it. This is used for EnvironBuilder and generally useful for unittesting. |
Class | FileStorage |
No summary |
Class | Headers |
An object that stores some headers. It has a dict-like interface, but is ordered, can store the same key multiple times, and iterating yields (key, value) pairs instead of only keys. |
Class | HeaderSet |
Similar to the ETags class this implements a set-like structure. Unlike ETags this is case insensitive and used for vary, allow, and content-language headers. |
Class | IfRange |
Very simple object that represents the If-Range header in parsed form. It will either have neither a etag or date or one of either but never both. |
Class | ImmutableDict |
An immutable dict . |
Class | ImmutableDictMixin |
Makes a dict immutable. |
Class | ImmutableHeadersMixin |
Makes a Headers immutable. We do not mark them as hashable though since the only usecase for this datastructure in Werkzeug is a view on a mutable structure. |
Class | ImmutableList |
An immutable list . |
Class | ImmutableListMixin |
Makes a list immutable. |
Class | ImmutableMultiDict |
An immutable MultiDict . |
Class | ImmutableMultiDictMixin |
Makes a MultiDict immutable. |
Class | ImmutableOrderedMultiDict |
An immutable OrderedMultiDict . |
Class | ImmutableTypeConversionDict |
Works like a TypeConversionDict but does not support modifications. |
Class | LanguageAccept |
Like Accept but with normalization for language tags. |
Class | MIMEAccept |
Like Accept but with special methods and behavior for mimetypes. |
Class | MultiDict |
No summary |
Class | OrderedMultiDict |
Works like a regular MultiDict but preserves the order of the fields. To convert the ordered multi dict into a list you can use the items method and pass it multi=True. |
Class | Range |
Represents a Range header. All methods only support only bytes as the unit. Stores a list of ranges if given, but the methods only work if only one range is provided. |
Class | RequestCacheControl |
A cache control for requests. This is immutable and gives access to all the request-relevant cache control headers. |
Class | ResponseCacheControl |
A cache control for responses. Unlike RequestCacheControl this is mutable and gives access to response-relevant cache control headers. |
Class | TypeConversionDict |
Works like a regular dict but the get method can perform type conversions. MultiDict and CombinedMultiDict are subclasses of this class and provide the same feature. |
Class | UpdateDictMixin |
Makes dicts call self.on_update on modifications. |
Class | WWWAuthenticate |
Provides simple access to WWW-Authenticate headers. |
Function | auth_property |
A static helper function for Authentication subclasses to add extra authentication system properties onto a class: |
Function | cache_control_property |
Return a new property object for a cache header. Useful if you want to add support for a cache extension in a subclass. |
Function | cache_property |
Undocumented |
Function | csp_property |
Return a new property object for a content security policy header. Useful if you want to add support for a csp extension in a subclass. |
Function | is_immutable |
Undocumented |
Function | iter_multi_items |
Iterates over the items of a mapping yielding keys and values without dropping any from more complex structures. |
Class | _CacheControl |
Subclass of a dict that stores values for a Cache-Control header. It has accessors for all the cache-control directives specified in RFC 2616. The class does not differentiate between request and response directives. |
Class | _omd_bucket |
No summary |
Function | _callback_property |
Undocumented |
Function | _calls_update |
Undocumented |
Function | _normalize_lang |
Process a language tag for matching. |
Function | _normalize_mime |
Undocumented |
Function | _options_header_vkw |
Undocumented |
Function | _set_property |
Undocumented |
Function | _unicodify_header_value |
Undocumented |
Variable | _locale_delim_re |
Undocumented |
Variable | _mime_split_re |
Undocumented |
A static helper function for Authentication subclasses to add extra authentication system properties onto a class:
class FooAuthenticate(WWWAuthenticate): special_realm = auth_property('special_realm')
For more information have a look at the sourcecode to see how the
regular properties (realm
etc.) are implemented.
Return a new property object for a cache header. Useful if you want to add support for a cache extension in a subclass.