Add options to the DSL

As in https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.2 and because it's a nice way to document API
This commit is contained in:
Armin Pašalić 2016-02-25 16:24:39 +01:00
parent 6929a1b8a9
commit 6759fb2373
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
HTTP_METHODS = %w(get post put patch delete)
HTTP_METHODS = %w(get post put patch delete options)
{% for method in HTTP_METHODS %}
def {{method.id}}(path, &block : HTTP::Server::Context -> _)