class Kemal::Shield::XDNSPrefetchControl

Overview

Kemal::Shield::XDNSPrefetchControl is a handler that sets the X-DNS-Prefetch-Control HTTP header to either "on" or "off".

X-DNS-Prefetch-Control helps controlling browsers' DNS prefetching.

The default value if "off".

The X-DNS-Prefetch-Control header can be updated to "on" by setting

Kemal::Shield.config.x_dns_prefetch_control = true

This handler can be turned of by setting

Kemal::Shield.config.x_dns_control_on = false

Defined in:

kemal-shield/handlers/x_dns_prefetch_control.cr

Instance Method Summary

Instance Method Detail

def call(context) #

[View source]