Table Of Contents

Previous topic

QHttpResponseHeader

Next topic

QUrlInfo

QNetworkCacheMetaData

Inheritance diagram of QNetworkCacheMetaData

Synopsis

Functions

Detailed Description

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.

class PySide.QtNetwork.QNetworkCacheMetaData
class PySide.QtNetwork.QNetworkCacheMetaData(other)
Parameters:otherPySide.QtNetwork.QNetworkCacheMetaData

Constructs an invalid network cache meta data.

Constructs a copy of the otherPySide.QtNetwork.QNetworkCacheMetaData .

PySide.QtNetwork.QNetworkCacheMetaData.attributes()
Return type:

Returns all the attributes stored with this cache item.

See also

PySide.QtNetwork.QNetworkCacheMetaData.setAttributes() QNetworkRequest.Attribute

PySide.QtNetwork.QNetworkCacheMetaData.expirationDate()
Return type:PySide.QtCore.QDateTime

Returns the date and time when the meta data expires.

PySide.QtNetwork.QNetworkCacheMetaData.isValid()
Return type:PySide.QtCore.bool

Returns true if this network cache meta data has attributes that have been set otherwise false.

PySide.QtNetwork.QNetworkCacheMetaData.lastModified()
Return type:PySide.QtCore.QDateTime

Returns the date and time when the meta data was last modified.

PySide.QtNetwork.QNetworkCacheMetaData.__ne__(other)
Parameters:otherPySide.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==()

PySide.QtNetwork.QNetworkCacheMetaData.__eq__(other)
Parameters:otherPySide.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!=()

PySide.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.

PySide.QtNetwork.QNetworkCacheMetaData.saveToDisk()
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.

PySide.QtNetwork.QNetworkCacheMetaData.setAttributes(attributes)
Parameters:attributes
PySide.QtNetwork.QNetworkCacheMetaData.setExpirationDate(dateTime)
Parameters:dateTimePySide.QtCore.QDateTime

Sets the date and time when the meta data expires to dateTime .

PySide.QtNetwork.QNetworkCacheMetaData.setLastModified(dateTime)
Parameters:dateTimePySide.QtCore.QDateTime

Sets the date and time when the meta data was last modified to dateTime .

PySide.QtNetwork.QNetworkCacheMetaData.setRawHeaders(headers)
Parameters:headers
PySide.QtNetwork.QNetworkCacheMetaData.setSaveToDisk(allow)
Parameters:allowPySide.QtCore.bool

Sets whether this network cache meta data and associated content should be allowed to be stored on disk to allow .

PySide.QtNetwork.QNetworkCacheMetaData.setUrl(url)
Parameters:urlPySide.QtCore.QUrl

Sets the URL this network cache meta data to to be url .

The password and fragment are removed from the url.

PySide.QtNetwork.QNetworkCacheMetaData.url()
Return type:PySide.QtCore.QUrl

Returns the URL this network cache meta data is referring to.