Skip to content

PythonQt.QtNetwork.QNetworkCacheMetaData · declarations 001

Back to PythonQt.QtNetwork.QNetworkCacheMetaData

attributes

attributes() -> dict

X.attributes() -> dict

Supplemental documentation: Qt 5 reference:

QNetworkCacheMetaData::AttributesMap QNetworkCacheMetaData::attributes() const

Returns all the attributes stored with this cache item.

This function was introduced in Qt 4.6.

See also setAttributes() and QNetworkRequest::Attribute.

Upstream PySide2 reference signatures (binding differences may apply):

attributes(self) -> typing.Dict[PySide2.QtNetwork.QNetworkRequest.Attribute, typing.Any]

Source: https://doc.qt.io/archives/qt-5.15/qnetworkcachemetadata.html#attributes

expirationDate

expirationDate() -> Any

X.expirationDate() -> PythonQt.QtCore.QDateTime

Supplemental documentation: Qt 5 reference:

QDateTime QNetworkCacheMetaData::expirationDate() const

Returns the date and time when the meta data expires.

See also setExpirationDate().

Upstream PySide2 reference signatures (binding differences may apply):

expirationDate(self) -> PySide2.QtCore.QDateTime

Source: https://doc.qt.io/archives/qt-5.15/qnetworkcachemetadata.html#expirationDate

isValid

isValid() -> bool

X.isValid() -> bool

Supplemental documentation: Qt 5 reference:

bool QNetworkCacheMetaData::isValid() const

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

Upstream PySide2 reference signatures (binding differences may apply):

isValid(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qnetworkcachemetadata.html#isValid

lastModified

lastModified() -> Any

X.lastModified() -> PythonQt.QtCore.QDateTime

Supplemental documentation: Qt 5 reference:

QDateTime QNetworkCacheMetaData::lastModified() const

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

See also setLastModified().

Upstream PySide2 reference signatures (binding differences may apply):

lastModified(self) -> PySide2.QtCore.QDateTime

Source: https://doc.qt.io/archives/qt-5.15/qnetworkcachemetadata.html#lastModified

rawHeaders

rawHeaders() -> tuple

X.rawHeaders() -> tuple

Supplemental documentation: Qt 5 reference:

QNetworkCacheMetaData::RawHeaderList QNetworkCacheMetaData::rawHeaders() const

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 setRawHeaders().

Upstream PySide2 reference signatures (binding differences may apply):

rawHeaders(self) -> typing.List[typing.Tuple[PySide2.QtCore.QByteArray, PySide2.QtCore.QByteArray]]

Source: https://doc.qt.io/archives/qt-5.15/qnetworkcachemetadata.html#rawHeaders

saveToDisk

saveToDisk() -> bool

X.saveToDisk() -> bool

Supplemental documentation: Qt 5 reference:

bool QNetworkCacheMetaData::saveToDisk() const

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 saveToDisk to false.

See also setSaveToDisk().

Upstream PySide2 reference signatures (binding differences may apply):

saveToDisk(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qnetworkcachemetadata.html#saveToDisk

setAttributes

setAttributes(attributes: Any) -> None

X.setAttributes(attributes)

Supplemental documentation: Qt 5 reference:

void QNetworkCacheMetaData::setAttributes(const QNetworkCacheMetaData::AttributesMap \&attributes)

Sets all attributes of this cache item to be the map attributes.

This function was introduced in Qt 4.6.

See also attributes() and QNetworkRequest::setAttribute().

Upstream PySide2 reference signatures (binding differences may apply):

setAttributes(self, attributes: typing.Dict[PySide2.QtNetwork.QNetworkRequest.Attribute, typing.Any]) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkcachemetadata.html#setAttributes

setExpirationDate

setExpirationDate(dateTime: Any) -> None

X.setExpirationDate(dateTime)

Supplemental documentation: Qt 5 reference:

void QNetworkCacheMetaData::setExpirationDate(const QDateTime \&dateTime)

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

See also expirationDate().

Upstream PySide2 reference signatures (binding differences may apply):

setExpirationDate(self, dateTime: PySide2.QtCore.QDateTime) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkcachemetadata.html#setExpirationDate

setLastModified

setLastModified(dateTime: Any) -> None

X.setLastModified(dateTime)

Supplemental documentation: Qt 5 reference:

void QNetworkCacheMetaData::setLastModified(const QDateTime \&dateTime)

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

See also lastModified().

Upstream PySide2 reference signatures (binding differences may apply):

setLastModified(self, dateTime: PySide2.QtCore.QDateTime) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkcachemetadata.html#setLastModified

setRawHeaders

setRawHeaders(headers: Any) -> None

X.setRawHeaders(headers)

Supplemental documentation: Qt 5 reference:

void QNetworkCacheMetaData::setRawHeaders(const QNetworkCacheMetaData::RawHeaderList \&list)

Sets the raw headers to list.

See also rawHeaders().

Upstream PySide2 reference signatures (binding differences may apply):

setRawHeaders(self, headers: typing.Sequence[typing.Tuple[PySide2.QtCore.QByteArray, PySide2.QtCore.QByteArray]]) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkcachemetadata.html#setRawHeaders

setSaveToDisk

setSaveToDisk(allow: bool) -> None

X.setSaveToDisk(allow)

Supplemental documentation: Qt 5 reference:

void QNetworkCacheMetaData::setSaveToDisk(bool allow)

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

See also saveToDisk().

Upstream PySide2 reference signatures (binding differences may apply):

setSaveToDisk(self, allow: bool) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkcachemetadata.html#setSaveToDisk

setUrl

setUrl(url: Any) -> None

X.setUrl(url)

Supplemental documentation: Qt 5 reference:

void QNetworkCacheMetaData::setUrl(const QUrl \&url)

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

The password and fragment are removed from the url.

See also url().

Upstream PySide2 reference signatures (binding differences may apply):

setUrl(self, url: PySide2.QtCore.QUrl) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkcachemetadata.html#setUrl

swap

swap(other: Any) -> None

X.swap(other)

Supplemental documentation: Qt 5 reference:

void QNetworkCacheMetaData::swap(QNetworkCacheMetaData \&other)

Swaps this metadata instance with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

Upstream PySide2 reference signatures (binding differences may apply):

swap(self, other: PySide2.QtNetwork.QNetworkCacheMetaData) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkcachemetadata.html#swap

url

url() -> Any

X.url() -> PythonQt.QtCore.QUrl

Supplemental documentation: Qt 5 reference:

QUrl QNetworkCacheMetaData::url() const

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

See also setUrl().

Upstream PySide2 reference signatures (binding differences may apply):

url(self) -> PySide2.QtCore.QUrl

Source: https://doc.qt.io/archives/qt-5.15/qnetworkcachemetadata.html#url