class TCal::Handlers::Canonize

Overview

HTTP handler that redirects requests using a non-canonical Host.

Included Modules

Defined in:

t_cal/handlers/canonize.cr

Constructors

Constructor Detail

def self.new(canonical_origin : String) #

Creates a handler instance. The canonical_origin must be a URL with at least a valid host component. Components other than the scheme, host, and port are discarded.


[View source]