Utilities
This module implements utility functions.
Build a params dictionary from a query_string. If keep_blank_values is True (the default), keep values that are blank.
Compress ‘body’ at the given compress_level.
Return a list of (start, stop) indices from a Range header, or None.
Each (start, stop) tuple will be composed of two ints, which are suitable for use in a slicing operation. That is, the header “Range: bytes=3-6”, if applied against a Python string, is requesting resource[3:7]. This function will return the list [(3, 7)].
If this function returns an empty list, you should return HTTP 416.
Bases: dict, _abcoll.MutableMapping
Dictionary that remembers insertion order with insensitive key
Initialize an ordered dictionary. Signature is the same as for regular dictionaries, but keyword arguments are not recommended because their insertion order is arbitrary.
If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v
If key is not found, d is returned if given, otherwise KeyError is raised.
Pairs are returned in LIFO order if last is true or FIFO order if false.
and values equal to v (which defaults to None).
Detect an SSLv2 or SSLv3 handshake