• PySide 模块
  • PySide.QtNetwork
  • 内容表

    上一话题

    QUrlInfo

    下一话题

    QNetworkInterface

    QNetworkCacheMetaData

    概要

    函数

    详细描述

    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 )
    参数: other PySide.QtNetwork.QNetworkCacheMetaData

    Constructs an invalid network cache meta data.

    构造副本为 other PySide.QtNetwork.QNetworkCacheMetaData .

    PySide.QtNetwork.QNetworkCacheMetaData. attributes ( )
    返回类型:

    Returns all the attributes stored with this cache item.

    另请参阅

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

    PySide.QtNetwork.QNetworkCacheMetaData. expirationDate ( )
    返回类型: PySide.QtCore.QDateTime

    Returns the date and time when the meta data expires.

    PySide.QtNetwork.QNetworkCacheMetaData. isValid ( )
    返回类型: PySide.QtCore.bool

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

    PySide.QtNetwork.QNetworkCacheMetaData. lastModified ( )
    返回类型: PySide.QtCore.QDateTime

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

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

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

    PySide.QtNetwork.QNetworkCacheMetaData. rawHeaders ( )
    返回类型:

    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 ( )
    返回类型: 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 )
    参数: attributes
    PySide.QtNetwork.QNetworkCacheMetaData. setExpirationDate ( dateTime )
    参数: dateTime PySide.QtCore.QDateTime

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

    PySide.QtNetwork.QNetworkCacheMetaData. setLastModified ( dateTime )
    参数: dateTime PySide.QtCore.QDateTime

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

    PySide.QtNetwork.QNetworkCacheMetaData. setRawHeaders ( headers )
    参数: headers
    PySide.QtNetwork.QNetworkCacheMetaData. setSaveToDisk ( allow )
    参数: allow PySide.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 )
    参数: 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.QtNetwork.QNetworkCacheMetaData. url ( )
    返回类型: PySide.QtCore.QUrl

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