module
Kemal::Utils
Defined in:
kemal/helpers/utils.crConstant Summary
-
ZIP_TYPES =
{".htm", ".html", ".txt", ".css", ".js", ".svg", ".json", ".xml", ".otf", ".ttf", ".woff", ".woff2"}
Class Method Summary
-
.matches_path_prefix?(prefix : String, path : String) : Bool
Exact prefix, or prefix followed by
/. - .path_starts_with_slash?(path : String)
- .zip_types(path : String)
Class Method Detail
def self.matches_path_prefix?(prefix : String, path : String) : Bool
#
Exact prefix, or prefix followed by /. "/", and "" match all paths.