判断题 Koa 应用程序不是 HTTP 服务器的1对1展现。 可以将一个或多个 Koa 应用程序安装在一起以形成具有单个HTTP服务器的更大应用程序。

A、 正确
B、 错误
下载APP答题
由4l***n6提供 分享 举报 纠错

相关试题

单选题 app.listen()语法糖错误的是

A、const http = require('http');
B、const Koa = require('koa');
C、http.create(app.callback()).listen(3000);
D、const app = new Koa();

单选题 默认情况下,将所有错误输出到stderr,除非app.silent为什么?

A、FALSE
B、TRUE
C、null
D、undefined

单选题 要在Koa中使用async方法,我推荐使用()

A、transform-async-to-generator
B、babel's require hook
C、transform-async-to-module-method
D、app.subdomainOffset

单选题 绕过 Koa 的 response 处理是 不被支持的. 应避免使用以下 node 属性

A、res.statusCode res.writeHead() res.write() res.end()
B、res.write() res.end()
C、res.write()
D、以上都不对

单选题 app.listen()的具体体现?

A、HTTP 服务器的1对1展现
B、一个或多个 Koa 应用程序安装在一起以形成具有单个HTTP服务器的更大应用程序
C、创建并返回 HTTPs 服务器
D、给定的参数传递给 Server#running()

单选题 app.context是从其创建什么的原型?

A、ctx
B、cxt
C、txc
D、xct

单选题 什么将 node 的 request 和 response 对象封装到单个对象中

A、Koa Context
B、koa Request
C、koa Response
D、ctx.request

单选题 request.href获取完整的请求URL,包括哪些?

A、protocol
B、host
C、 url
D、以上都对