]> git.kaiwu.me - njs.git/commit
HTTP response return() method.
authorRoman Arutyunyan <arut@nginx.com>
Mon, 2 Apr 2018 15:01:34 +0000 (18:01 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Mon, 2 Apr 2018 15:01:34 +0000 (18:01 +0300)
commit31fe0d1e728bee140145fd3ace5eca1e6fdd2bd4
tree3df57480f6b68bfcdd956652c2f0d1227a1e0cdf
parent1a8dea72903e6bbde090bc504fbd339df2eb7b8f
HTTP response return() method.

The method is a shortcut for finalizing an HTTP request and is similar to nginx
return directive.

res.return(code[, text]):
    code - numeric status code.
    text - response body or redirect URI (for 3xx responses).
nginx/ngx_http_js_module.c