Module stardust.response

Ziggy Response

Functions

new (ngx) Create a new response object.
send (self) Send the repsonse to the client You should call this only once


Functions

new (ngx)
Create a new response object. A response object is just a table with some helper functions.

Parameters:

  • ngx magic nginx lua object

Returns:

    a response object/table

Usage:

     You can directly manipulate the reponse object fields:
     * status - should be an http code as an integer
     * headers - a table of http response headers
     * body - a string of the http response
     * ctx - a Lua table that can be used as scratch space. No effort is made to avoid collisions, so namespace your keys.
send (self)
Send the repsonse to the client You should call this only once

Parameters:

generated by LDoc 1.3