werkzeug.datastructures
Werkzeug provides some subclasses of common Python objects to extend them with additional features. Some of them are used to make them immutable, others are used to change some semantics to better work with HTTP.
0.6 The general purpose classes are now pickleable in each protocol as long as the contained objects are pickleable. This means that the FileMultiDict
won't be pickleable as soon as it contains a file.
TypeConversionDict
ImmutableTypeConversionDict
MultiDict
OrderedMultiDict
ImmutableMultiDict
ImmutableOrderedMultiDict
CombinedMultiDict
ImmutableDict
ImmutableList
FileMultiDict
Headers([defaults])
EnvironHeaders
HeaderSet
Accept
MIMEAccept
CharsetAccept
LanguageAccept
RequestCacheControl
no_cache
no_store
max_age
no_transform
ResponseCacheControl
no_cache
no_store
max_age
no_transform
ETags
Authorization
WWWAuthenticate
IfRange
Range
ContentRange
FileStorage
stream
The input stream for the uploaded file. This usually points to an open temporary file.
filename
The filename of the file on the client. Can be a str
, or an instance of os.PathLike
.
name
The name of the form field.
headers
The multipart headers as Headers
object. This usually contains irrelevant information but in combination with custom multipart requests the raw headers might be interesting.
0.6