39 void updateFromHeaders(
const QHttpHeaders &headers,
41 void updateFromPolicies(
const QList<QHstsPolicy> &hosts);
42 void updateKnownHost(
const QUrl &url,
const QDateTime &expires,
43 bool includeSubDomains);
44 bool isKnownHost(
const QUrl &url)
const;
47 QList<QHstsPolicy> policies()
const;
49#if QT_CONFIG(settings)
50 void setStore(
class QHstsStore *store);
55 void updateKnownHost(
const QString &hostName,
const QDateTime &expires,
56 bool includeSubDomains);
60 explicit HostName(
const QString &n) : name(n) { }
61 explicit HostName(QStringView r) : fragment(r) { }
63 bool operator < (
const HostName &rhs)
const
65 if (fragment.size()) {
66 if (rhs.fragment.size())
67 return fragment < rhs.fragment;
68 return fragment < QStringView{rhs.name};
71 if (rhs.fragment.size())
72 return QStringView{name} < rhs.fragment;
73 return name < rhs.name;
84 mutable std::map<HostName, QHstsPolicy> knownHosts;
85#if QT_CONFIG(settings)
86 QHstsStore *hstsStore =
nullptr;