Rename return_with as halt for clear intention

This commit is contained in:
sdogruyol 2016-11-01 11:46:13 +03:00
parent cc78f4e02e
commit d676b559d2
3 changed files with 9 additions and 7 deletions

View file

@ -69,8 +69,8 @@ end
# Halt execution with the current context.
# Returns 200 and an empty response by default.
#
# return_with env, status_code: 403, response: "Forbidden"
macro return_with(env, status_code = 200, response = "")
# halt env, status_code: 403, response: "Forbidden"
macro halt(env, status_code = 200, response = "")
{{env}}.response.status_code = {{status_code}}
{{env}}.response.print {{response}}
next