QNetworkCacheMetaData¶
The QNetworkCacheMetaData
class provides cache information. More…
Synopsis¶
Functions¶
def
__eq__
(other)def
__ne__
(other)def
attributes
()def
expirationDate
()def
isValid
()def
lastModified
()def
rawHeaders
()def
saveToDisk
()def
setAttributes
(attributes)def
setExpirationDate
(dateTime)def
setLastModified
(dateTime)def
setRawHeaders
(headers)def
setSaveToDisk
(allow)def
setUrl
(url)def
swap
(other)def
url
()
Detailed Description¶
QNetworkCacheMetaData
provides information about a cache file including the url, when it was last modified, when the cache file was created, headers for file and if the file should be saved onto a disk.
See also
- class PySide6.QtNetwork.QNetworkCacheMetaData¶
PySide6.QtNetwork.QNetworkCacheMetaData(other)
- Parameters
Constructs an invalid network cache meta data.
See also
Constructs a copy of the other
QNetworkCacheMetaData
.
- PySide6.QtNetwork.QNetworkCacheMetaData.attributes()¶
- Return type
Returns all the attributes stored with this cache item.
See also
setAttributes()
Attribute
- PySide6.QtNetwork.QNetworkCacheMetaData.expirationDate()¶
- Return type
Returns the date and time when the meta data expires.
See also
- PySide6.QtNetwork.QNetworkCacheMetaData.isValid()¶
- Return type
bool
Returns true
if this network cache meta data has attributes that have been set otherwise false.
- PySide6.QtNetwork.QNetworkCacheMetaData.lastModified()¶
- Return type
Returns the date and time when the meta data was last modified.
See also
- PySide6.QtNetwork.QNetworkCacheMetaData.__ne__(other)¶
- Parameters
- Return type
bool
Returns true
if this meta data is not equal to the other
meta data; otherwise returns false
.
See also
operator==()
- PySide6.QtNetwork.QNetworkCacheMetaData.__eq__(other)¶
- Parameters
- Return type
bool
Returns true
if this meta data is equal to the other
meta data; otherwise returns false
.
See also
operator!=()
- PySide6.QtNetwork.QNetworkCacheMetaData.rawHeaders()¶
- Return type
Returns a list of all raw headers that are set in this meta data. The list is in the same order that the headers were set.
See also
- PySide6.QtNetwork.QNetworkCacheMetaData.saveToDisk()¶
- Return type
bool
Returns is this cache should be allowed to be stored on disk.
Some cache implementations can keep these cache items in memory for performance reasons, but for security reasons they should not be written to disk.
Specifically with http, documents with Cache-control set to no-store or any https document that doesn’t have “Cache-control: public” set will set the to false.
See also
- PySide6.QtNetwork.QNetworkCacheMetaData.setAttributes(attributes)¶
- Parameters
attributes –
Sets all attributes of this cache item to be the map attributes
.
See also
- PySide6.QtNetwork.QNetworkCacheMetaData.setExpirationDate(dateTime)¶
- Parameters
dateTime –
PySide6.QtCore.QDateTime
Sets the date and time when the meta data expires to dateTime
.
See also
- PySide6.QtNetwork.QNetworkCacheMetaData.setLastModified(dateTime)¶
- Parameters
dateTime –
PySide6.QtCore.QDateTime
Sets the date and time when the meta data was last modified to dateTime
.
See also
- PySide6.QtNetwork.QNetworkCacheMetaData.setRawHeaders(headers)¶
- Parameters
headers –
Sets the raw headers to list
.
See also
- PySide6.QtNetwork.QNetworkCacheMetaData.setSaveToDisk(allow)¶
- Parameters
allow – bool
Sets whether this network cache meta data and associated content should be allowed to be stored on disk to allow
.
See also
- PySide6.QtNetwork.QNetworkCacheMetaData.setUrl(url)¶
- Parameters
url –
PySide6.QtCore.QUrl
Sets the URL this network cache meta data to be url
.
The password and fragment are removed from the url.
See also
- PySide6.QtNetwork.QNetworkCacheMetaData.swap(other)¶
- Parameters
Swaps this metadata instance with other
. This function is very fast and never fails.
- PySide6.QtNetwork.QNetworkCacheMetaData.url()¶
- Return type
Returns the URL this network cache meta data is referring to.
See also
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.