From aa378b7a90ba5f01c7acd353d75848aff87bba91 Mon Sep 17 00:00:00 2001 From: Luna Date: Thu, 20 Feb 2020 20:59:34 -0300 Subject: [PATCH] add head method to dsl --- src/kemal/dsl.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kemal/dsl.cr b/src/kemal/dsl.cr index 15b3742..154662e 100644 --- a/src/kemal/dsl.cr +++ b/src/kemal/dsl.cr @@ -6,8 +6,8 @@ # - WebSocket(ws) # - before_* # - error -HTTP_METHODS = %w(get post put patch delete options) -FILTER_METHODS = %w(get post put patch delete options all) +HTTP_METHODS = %w(get post put patch delete options head) +FILTER_METHODS = %w(get post put patch delete options head all) {% for method in HTTP_METHODS %} def {{method.id}}(path : String, &block : HTTP::Server::Context -> _)