QHstsPolicy Class
The QHstsPolicy class specifies that a host supports HTTP Strict Transport Security policy (HSTS). More...
| Header: | #include <QHstsPolicy> |
| qmake: | QT += network |
| Since: | Qt 5.9 |
This class was introduced in Qt 5.9.
Public Types
| enum | PolicyFlag { IncludeSubDomains } |
Detailed Description
HSTS policy defines a period of time during which QNetworkAccessManager should only access a host in a secure fashion. HSTS policy is defined by RFC6797.
You can set expiry time and host name for this policy, and control whether it applies to subdomains, either in the constructor or by calling setExpiry(), setHost() and setIncludesSubdomains().
See also QNetworkAccessManager::setStrictTransportSecurityEnabled().