The QHstsPolicy class specifies that a host supports HTTP Strict Transport Security policy (HSTS). More...
|CMake:||find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network)
|qmake:||QT += network|
|QHstsPolicy(const QHstsPolicy &other)|
|QHstsPolicy(const QDateTime &expiry, QHstsPolicy::PolicyFlags flags, const QString &host, QUrl::ParsingMode mode = QUrl::DecodedMode)|
|QHstsPolicy &||operator=(const QHstsPolicy &other)|
|QString||host(QUrl::ComponentFormattingOptions options = QUrl::FullyDecoded) const|
|void||setExpiry(const QDateTime &expiry)|
|void||setHost(const QString &host, QUrl::ParsingMode mode = QUrl::DecodedMode)|
|bool||operator!=(const QHstsPolicy &lhs, const QHstsPolicy &rhs)|
|bool||operator==(const QHstsPolicy &lhs, const QHstsPolicy &rhs)|
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.
||Indicates whether a policy must include subdomains|
The PolicyFlags type is a typedef for QFlags<PolicyFlag>. It stores an OR combination of PolicyFlag values.
Creates a copy of other object.
Constructs QHstsPolicy with expiry (in UTC); flags is a value indicating whether this policy must also include subdomains, host data is interpreted according to mode.
Constructs an invalid (expired) policy with empty host name and subdomains not included.
Copy-assignment operator, makes a copy of other.
Returns the expiration date for the policy (in UTC).
See also setExpiry().
Returns a host for a given policy, formatted according to options.
true if this policy also includes subdomains.
See also setIncludesSubDomains().
true if this policy has a valid expiration date and this date is greater than QDateTime::currentGetDateTimeUtc().
Sets the expiration date for the policy (in UTC) to expiry.
See also expiry().
Sets a host, host data is interpreted according to mode parameter.
Sets whether subdomains are included for this policy to include.
See also includesSubDomains().
Swaps this policy with the other policy.
true if the two policies lhs and rhs do not have the same host or expiration date, or do not agree on whether to include or exclude subdomains.
true if the two policies lhs and rhs have the same host and expiration date while agreeing on whether to include or exclude subdomains.