class Marten::Conf::GlobalSettings::StrictTransportSecurity

Overview

Allows to configure settings related to the Strict-Transport-Security middleware.

Defined in:

marten/conf/global_settings/strict_stransport_security.cr

Instance Method Summary

Instance Method Detail

def include_sub_domains : Bool #

Indicates if the includeSubDomains directive should be set on the Strict-Transport-Security header.


[View source]
def include_sub_domains=(include_sub_domains : Bool) #

Allows to define if the includeSubDomains directive should be set on the Strict-Transport-Security header.


[View source]
def max_age : Int32? #

Returns the max age to use for the Strict-Transport-Security header.

A nil value indicates that the Strict-Transport-Security header will not be set.


[View source]
def max_age=(max_age : Int32 | Nil) #

Allows to set the max age to use for the Strict-Transport-Security header.


[View source]
def preload : Bool #

Indicates if the #preload directive should be set on the Strict-Transport-Security header.


[View source]
def preload=(preload : Bool) #

Allows to define if the #preload directive should be set on the Strict-Transport-Security header.


[View source]