Module: Feature_Koa

Enable koa-based web engine.

Source:
serverFeatures/koa.js

Members


<static> type :string

This feature is loaded at service stage

Type:
  • string
Source:
serverFeatures/koa.js

Methods


<static> load_(server, options)

Load the feature

Parameters:
Name Type Description
server WebServer

The web server

options object

Options for the feature

Properties:
Name Type Argument Default Description
options.trustProxy bool <optional>

When true proxy header fields will be trusted

options.keys Array.<string> <optional>

Set signed cookie keys

options.httpPort int <optional>

The http port number

options.subdomainOffset int <optional>
2

The offset of subdomains to ignore, default: 2

Source:
serverFeatures/koa.js
Returns:
Type
Promise.<*>