Upcase method names
This commit is contained in:
parent
e232dde74a
commit
11157d2484
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ end
|
||||||
|
|
||||||
{% for method in %w(get post put head delete patch) %}
|
{% for method in %w(get post put head delete patch) %}
|
||||||
def {{method.id}}(path, headers : HTTP::Headers? = nil, body : String? = nil)
|
def {{method.id}}(path, headers : HTTP::Headers? = nil, body : String? = nil)
|
||||||
request = HTTP::Request.new("{{method.id}}", path, headers, body )
|
request = HTTP::Request.new("{{method.id}}".upcase, path, headers, body )
|
||||||
Global.response = process_request request
|
Global.response = process_request request
|
||||||
end
|
end
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
Loading…
Reference in a new issue