Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Response Options

Lakshan Perera edited this page Sep 13, 2012 · 1 revision

A content handler or helper can pass a response_options object in the callback. It can contain the following properties:

  • status (integer) - HTTP status code (eg. 200, 404, 500)
  • header (object) - Any field that can be set in the HTTP Header.
  • cache (object) - HTTP Cache response directives. eg. { "mag_age": 0, "directives": ["public"] }
  • log (object) - eg. { "log": { "message": "This will be logged in server's log" } }