class TCal::Handlers::Canonize
- TCal::Handlers::Canonize
- Reference
- Object
Overview
HTTP handler that redirects requests using a non-canonical Host
.
Included Modules
- HTTP::Handler
Defined in:
t_cal/handlers/canonize.crConstructors
-
.new(canonical_origin : String)
Creates a handler instance.
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.