Kemal::Shield::ExpectCT
Inherits Kemal::Shield::Handler / Kemal::Handler / Kemal::HandlerInterface / HTTP::Handler / Reference / Object
Kemal::Shield::ExpectCT is a handler that sets the Expect-CT HTTP header.
This header tells browsers to expect Certificate Transparency.
The default value is "max-age=0"
The Expect-CT header can be updated by changing the values of
Kemal::Shield.config.expect_ct_max_age
Kemal::Shield.config.expect_ct_enforce
Kemal::Shield.config.expect_ct_report_uri
This handler can be turned off by setting
Kemal::Shield.config.expect_ct = false
Constructors
new(max_age : Int32 = 0, enforce : Bool = false, report_uri : String = "")
SourceInstance methods
call(context)
Source