应用信息
应用名称 <%= appname %>
应用目录 <%= appdir %>
主机名 <%= config.host %>
虚拟路径 <%= config.path %>
onRequest插件 <%= (typeof config.onRequest === "function" ? "有" : "无") %>
<% for (var i in config.request) { if (i === "event") continue; %> <% } %> <% if (config.request && config.request.event) { %> <% for (var i in config.request.event) { %> <% } %> <% } %>
Request对象配置
<%= i %> <%= config.request[i] %>
<%= i %> 事件
<% for (var i in config.response) { if (i === "event") continue; %> <% } %> <% if (config.response && config.response.event) { %> <% for (var i in config.response.event) { %> <% } %> <% } %> <% if (config.response && config.response.header) { %> <% for (var i in config.response.header) { %> <% } %> <% } %>
Response对象配置
<%= i %> <%= config.response[i] %>
<%= i %> 事件
响应头:<%= i %> <%= config.response.header[i] %>
<% for (var i in route) { %> <% } %>
路由配置
类型 路径
<%= route[i].type %> <%= route[i].path %>