class Kemal::Shield::ExpectCT

Overview

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

Defined in:

kemal-shield/handlers/expect_ct.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(max_age : Int32 = 0, enforce : Bool = false, report_uri : String = "") #

[View source]

Instance Method Detail

def call(context) #

[View source]