Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QHstsCache Class Reference

#include <qhsts_p.h>

+ Collaboration diagram for QHstsCache:

Public Member Functions

void updateFromHeaders (const QHttpHeaders &headers, const QUrl &url)
 
void updateFromPolicies (const QList< QHstsPolicy > &hosts)
 
void updateKnownHost (const QUrl &url, const QDateTime &expires, bool includeSubDomains)
 
bool isKnownHost (const QUrl &url) const
 
void clear ()
 
QList< QHstsPolicypolicies () const
 

Detailed Description

Definition at line 36 of file qhsts_p.h.

Member Function Documentation

◆ clear()

void QHstsCache::clear ( )

Definition at line 190 of file qhsts.cpp.

◆ isKnownHost()

bool QHstsCache::isKnownHost ( const QUrl & url) const

Definition at line 134 of file qhsts.cpp.

References dot(), QUrl::host(), is_valid_domain_name(), QUrl::isValid(), pos, and url.

Referenced by QNetworkReplyHttpImplPrivate::onRedirected().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ policies()

QList< QHstsPolicy > QHstsCache::policies ( ) const

Definition at line 195 of file qhsts.cpp.

References QList< T >::reserve().

Referenced by updateFromPolicies().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateFromHeaders()

void QHstsCache::updateFromHeaders ( const QHttpHeaders & headers,
const QUrl & url )

Definition at line 45 of file qhsts.cpp.

References QHstsHeaderParser::expirationDate(), QUrl::host(), QHstsHeaderParser::includeSubDomains(), QUrl::isValid(), QHstsHeaderParser::parse(), updateKnownHost(), and url.

Referenced by QNetworkReplyHttpImplPrivate::replyDownloadMetaData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateFromPolicies()

void QHstsCache::updateFromPolicies ( const QList< QHstsPolicy > & hosts)

Definition at line 61 of file qhsts.cpp.

References policies(), policy, QList< T >::size(), and updateKnownHost().

+ Here is the call graph for this function:

◆ updateKnownHost()

void QHstsCache::updateKnownHost ( const QUrl & url,
const QDateTime & expires,
bool includeSubDomains )

Definition at line 76 of file qhsts.cpp.

References QUrl::host(), QUrl::isValid(), updateKnownHost(), and url.

Referenced by updateFromHeaders(), updateFromPolicies(), and updateKnownHost().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: