Undocumented
Function | is |
Convenience method for conditional requests. :param http_range: Range HTTP header :param http_if_range: If-Range HTTP header :param http_if_modified_since: If-Modified-Since HTTP header :param http_if_none_match: If-None-Match HTTP header :param http_if_match: If-Match HTTP header :param etag: the etag for the response for comparison... |
Function | parse |
Parse a cookie from a string. |
Variable | _etag |
Undocumented |
t.Optional[ str]
= None, http_if_range: t.Optional[ str]
= None, http_if_modified_since: t.Optional[ str]
= None, http_if_none_match: t.Optional[ str]
= None, http_if_match: t.Optional[ str]
= None, etag: t.Optional[ str]
= None, data: t.Optional[ bytes]
= None, last_modified: t.Optional[ t.Union[ datetime, str]]
= None, ignore_if_range: bool
= True) -> bool
:
(source)
¶
Convenience method for conditional requests. :param http_range: Range HTTP header :param http_if_range: If-Range HTTP header :param http_if_modified_since: If-Modified-Since HTTP header :param http_if_none_match: If-None-Match HTTP header :param http_if_match: If-Match HTTP header :param etag: the etag for the response for comparison. :param data: or alternatively the data of the response to automatically generate an etag using :func:`generate_etag`. :param last_modified: an optional date of the last modification. :param ignore_if_range: If `False`, `If-Range` header will be taken into account. :return: `True` if the resource was modified, otherwise `False`. .. versionadded:: 2.2
t.Union[ bytes, str, None]
= '', charset: str
= 'utf-8', errors: str
= 'replace', cls: t.Optional[ t.Type[ ds.MultiDict]]
= None) -> ds.MultiDict[ str, str]
:
(source)
¶
Parse a cookie from a string. The same key can be provided multiple times, the values are stored in-order. The default :class:`MultiDict` will have the first value first, and all values can be retrieved with :meth:`MultiDict.getlist`. :param cookie: The cookie header as a string. :param charset: The charset for the cookie values. :param errors: The error behavior for the charset decoding. :param cls: A dict-like class to store the parsed cookies in. Defaults to :class:`MultiDict`. .. versionadded:: 2.2