Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QHstsCache Class Reference

#include <qhsts_p.h>

+ Collaboration diagram for QHstsCache:

Public Member Functions

void updateFromHeaders (const QList< QPair< QByteArray, QByteArray > > &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 34 of file qhsts_p.h.

Member Function Documentation

◆ clear()

void QHstsCache::clear ( )

Definition at line 188 of file qhsts.cpp.

◆ isKnownHost()

bool QHstsCache::isKnownHost ( const QUrl url) const

Definition at line 132 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 193 of file qhsts.cpp.

Referenced by updateFromPolicies().

+ Here is the caller graph for this function:

◆ updateFromHeaders()

void QHstsCache::updateFromHeaders ( const QList< QPair< QByteArray, QByteArray > > &  headers,
const QUrl url 
)

Definition at line 43 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 59 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 74 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: