In general, one or more programs that are designed to carry out operations for a specific purpose. 一般来说,一个或多个程序设计用于执行特定目的的操作。In the context of Express, a program that uses the Express API running on the Node.js platform. 在Express的上下文中,使用Node.js平台上运行的Express API的程序。Might also refer to an app object.也可能引用应用程序对象。
Application programming interface. 应用程序编程接口。Spell out the abbreviation when it is first used.当缩写词第一次被使用时,请把它拼出来。
A fast, un-opinionated, minimalist web framework for Node.js applications. 一个用于Node.js应用程序的快速、非固执己见、最低限度的web框架。In general, “Express” is preferred to “Express.js,” though the latter is acceptable.一般来说,“Express”比“Express.js”更受欢迎,尽管后者是可以接受的。
A multi-platform support library which focuses on asynchronous I/O, primarily developed for use by Node.js.一个多平台支持库,主要用于异步I/O,主要由Node.js开发使用。
A function that is invoked by the Express routing layer before the final request handler, and thus sits in the middle between a raw request and the final intended route. 在最终请求处理程序之前由Express路由层调用的函数,因此位于原始请求和最终预期路由之间的中间。A few fine points of terminology around middleware:关于中间件的几个术语要点:
var foo = require('middleware')
is called requiring or using a Node.js module. Then the statement var mw = foo()
typically returns the middleware.app.use(mw)
is called adding the middleware to the global processing stack.app.get('/foo', mw, function (req, res) { ... })
is called adding the middleware to the “GET /foo” processing stack.A software platform that is used to build scalable network applications. 用于构建可扩展网络应用程序的软件平台。Node.js uses JavaScript as its scripting language, and achieves high throughput via non-blocking I/O and a single-threaded event loop. Node.js使用JavaScript作为脚本语言,通过非阻塞I/O和单线程事件循环实现高吞吐量。See nodejs.org. 请参阅nodejs.org。Usage note: Initially, “Node.js,” thereafter “Node”.用法说明:最初是“Node.js”,之后是“Node”。
When used as an adjective, hyphenate; for example: “This is open-source software.” 用作形容词时,连字符;例如:“这是开源软件。”See Open-source software on Wikipedia. 请参阅维基百科上的开源软件。Note: Although it is common not to hyphenate this term, we are using the standard English rules for hyphenating a compound adjective.注意:虽然不使用连字符是很常见的,但是我们使用标准的英语规则来连接复合形容词。
An HTTP request. HTTP请求。A client submits an HTTP request message to a server, which returns a response. 客户端向服务器提交HTTP请求消息,服务器返回响应。The request must use one of several request methods such as GET, POST, and so on.请求必须使用多种请求方法之一,如GET、POST等。
An HTTP response. HTTP响应。A server returns an HTTP response message to the client. 服务器向客户端返回HTTP响应消息。The response contains completion status information about the request and might also contain requested content in its message body.响应包含有关请求的完成状态信息,并且可能在其消息体中包含请求的内容。
Part of a URL that identifies a resource. 标识资源的URL的一部分。For example, in 例如,在http://foo.com/products/id
, “/products/id” is the route.http://foo.com/products/id
中,“/products/id”是路由。