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.
| 参数: | other – PySide.QtNetwork.QNetworkCacheMetaData |
|---|
Constructs an invalid network cache meta data.
构造副本为 other PySide.QtNetwork.QNetworkCacheMetaData .
| 返回类型: |
|---|
Returns all the attributes stored with this cache item.
另请参阅
PySide.QtNetwork.QNetworkCacheMetaData.setAttributes() QNetworkRequest.Attribute
| 返回类型: | PySide.QtCore.QDateTime |
|---|
Returns the date and time when the meta data expires.
| 返回类型: | PySide.QtCore.bool |
|---|
Returns true if this network cache meta data has attributes that have been set otherwise false.
| 返回类型: | PySide.QtCore.QDateTime |
|---|
Returns the date and time when the meta data was last modified.
| 参数: | other – PySide.QtNetwork.QNetworkCacheMetaData |
|---|---|
| 返回类型: | PySide.QtCore.bool |
Returns true if this meta data is not equal to the other meta data; otherwise returns false.
另请参阅
PySide.QtNetwork.QNetworkCacheMetaData.operator==()
| 参数: | other – PySide.QtNetwork.QNetworkCacheMetaData |
|---|---|
| 返回类型: | PySide.QtCore.bool |
Returns true if this meta data is equal to the other meta data; otherwise returns false.
另请参阅
PySide.QtNetwork.QNetworkCacheMetaData.operator!=()
| 返回类型: |
|---|
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.
| 返回类型: | 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.
| 参数: | attributes – |
|---|
| 参数: | dateTime – PySide.QtCore.QDateTime |
|---|
Sets the date and time when the meta data expires to dateTime .
| 参数: | dateTime – PySide.QtCore.QDateTime |
|---|
Sets the date and time when the meta data was last modified to dateTime .
| 参数: | headers – |
|---|
| 参数: | allow – PySide.QtCore.bool |
|---|
Sets whether this network cache meta data and associated content should be allowed to be stored on disk to allow .
| 参数: | 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.
| 返回类型: | PySide.QtCore.QUrl |
|---|
Returns the URL this network cache meta data is referring to.