Class: LinoResult

LinoResult(value, statusopt, headersopt, optionsopt)

A handler result carrying a status code and headers alongside the value.

Constructor

new LinoResult(value, statusopt, headersopt, optionsopt)

Parameters:
Name Type Attributes Default Description
value *

Value to encode, or undefined for an empty body

status number <optional>
200

HTTP status code

headers object <optional>

Response headers

options object <optional>

Response options forwarded to res.lino

Source:

Classes

LinoResult