lua-resty-response

simple wrapper for ngx.print, ngx.redirect etc.

lua-resty-response

simple wrapper for ngx.print, ngx.redirect etc.

Requirements

Nothing.

Synopsis

    local response = require 'resty.response'
    
    local res = response.Json{foo='bar'} -- get a function
    res() -- trigger ngx.print

Authors

Nan Xiang(@xiangnanscu)

License

mit

Versions