The PySide.QtNetwork.QNetworkCacheMetaData class provides cache information.
PySide.QtNetwork.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.
Parameters: | other – PySide.QtNetwork.QNetworkCacheMetaData |
---|
Constructs an invalid network cache meta data.
Constructs a copy of the otherPySide.QtNetwork.QNetworkCacheMetaData .
Return type: |
---|
Returns all the attributes stored with this cache item.
See also
PySide.QtNetwork.QNetworkCacheMetaData.setAttributes() QNetworkRequest.Attribute
Return type: | PySide.QtCore.QDateTime |
---|
Returns the date and time when the meta data expires.
Return type: | PySide.QtCore.bool |
---|
Returns true if this network cache meta data has attributes that have been set otherwise false.
Return type: | PySide.QtCore.QDateTime |
---|
Returns the date and time when the meta data was last modified.
Parameters: | other – PySide.QtNetwork.QNetworkCacheMetaData |
---|---|
Return type: | PySide.QtCore.bool |
Returns true if this meta data is not equal to the other meta data; otherwise returns false.
See also
PySide.QtNetwork.QNetworkCacheMetaData.operator==()
Parameters: | other – PySide.QtNetwork.QNetworkCacheMetaData |
---|---|
Return type: | PySide.QtCore.bool |
Returns true if this meta data is equal to the other meta data; otherwise returns false.
See also
PySide.QtNetwork.QNetworkCacheMetaData.operator!=()
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.
Return type: | PySide.QtCore.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 marked with Pragma: no-cache, or have a Cache-control set to no-store or no-cache or any https document that doesn’t have “Cache-control: public” set will set the saveToDisk to false.
Parameters: | attributes – |
---|
Parameters: | dateTime – PySide.QtCore.QDateTime |
---|
Sets the date and time when the meta data expires to dateTime .
Parameters: | dateTime – PySide.QtCore.QDateTime |
---|
Sets the date and time when the meta data was last modified to dateTime .
Parameters: | headers – |
---|
Parameters: | allow – PySide.QtCore.bool |
---|
Sets whether this network cache meta data and associated content should be allowed to be stored on disk to allow .
Parameters: | url – PySide.QtCore.QUrl |
---|
Sets the URL this network cache meta data to to be url .
The password and fragment are removed from the url.
Return type: | PySide.QtCore.QUrl |
---|
Returns the URL this network cache meta data is referring to.