ace v0.12.0 Ace.Response View Source

Encapsulate parameters for HTTP stream from server to client.

statusThe HTTP status code for the response: 1xx, 2xx, 3xx, 4xx, 5xx
headersThe headers from the HTTP request as an array of string pairs. Note all headers will be downcased, e.g. [{“content-type”, “text/plain”}]
bodytrue, false or complete body as a binary.

Link to this section Summary


Construct a new response

Link to this section Functions

Link to this function new(status, headers, body) View Source

Construct a new response