Final Class Yiisoft\HttpMiddleware\ForceSecureConnection\HstsHeader
| Inheritance | Yiisoft\HttpMiddleware\ForceSecureConnection\HstsHeader |
|---|
Represents the Strict-Transport-Security header.
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $maxAge | integer | Yiisoft\HttpMiddleware\ForceSecureConnection\HstsHeader | |
| $subdomains | boolean | Yiisoft\HttpMiddleware\ForceSecureConnection\HstsHeader |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\HttpMiddleware\ForceSecureConnection\HstsHeader | |
| getValue() | Yiisoft\HttpMiddleware\ForceSecureConnection\HstsHeader |
Constants
| Constant | Value | Description | Defined By |
|---|---|---|---|
| DEFAULT_MAX_AGE | 31536000 | Yiisoft\HttpMiddleware\ForceSecureConnection\HstsHeader |
Property Details
Method Details
| public mixed __construct ( integer $maxAge = self::DEFAULT_MAX_AGE, boolean $subdomains = false ) | ||
| $maxAge | integer |
The max age. |
| $subdomains | boolean |
Whether to add the |
public function __construct(
public readonly int $maxAge = self::DEFAULT_MAX_AGE,
public readonly bool $subdomains = false,
) {
}
Signup or Login in order to comment.