add head method to dsl

This commit is contained in:
Luna 2020-02-20 20:59:34 -03:00
parent 2f9f859be9
commit aa378b7a90
1 changed files with 2 additions and 2 deletions

View File

@ -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 -> _)