Glossary术语表

application

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. Might also refer to an app object.在Express的上下文中,使用在Node.js平台上运行的Express API的程序。也可能指app对象

API

Application programming interface. Spell out the abbreviation when it is first used.应用程序编程接口。首次使用缩写时,请将其拼写出来。

Express

A fast, un-opinionated, minimalist web framework for Node.js applications. In general, “Express” is preferred to “Express.js,” though the latter is acceptable.一个快速、不固执己见、极简主义的Node.js应用程序web框架。一般来说,“Express”比“Expressjs”更受欢迎,尽管后者是可以接受的。

libuv

A multi-platform support library which focuses on asynchronous I/O, primarily developed for use by Node.js.一个专注于异步I/O的多平台支持库,主要为Node.js开发。

middleware

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. A few fine points of terminology around middleware:Express路由层在最终请求处理程序之前调用的函数,因此位于原始请求和最终预期路由之间。关于中间件的几个术语要点:

Node.js

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. Usage note: Initially, “Node.js,” thereafter “Node”.请参阅nodejs.org。用法说明:最初为“Node.js”,之后为“Node”。

open-source, open source开源,开源

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.虽然这个词通常不连字符,但我们使用标准的英语规则来连字符复合形容词。

request

An HTTP request. A client submits an HTTP request message to a server, which returns a response. The request must use one of several request methods such as GET, POST, and so on.HTTP请求。客户端向服务器提交HTTP请求消息,服务器返回响应。请求必须使用几种请求方法之一,如GET、POST等。

response

An HTTP response. A server returns an HTTP response message to the client. The response contains completion status information about the request and might also contain requested content in its message body.HTTP响应。服务器向客户端返回HTTP响应消息。响应包含有关请求的完成状态信息,也可能在其消息体中包含请求的内容。

route

Part of a URL that identifies a resource. For example, in http://foo.com/products/id, “/products/id” is the route.标识资源的URL的一部分。例如,在http://foo.com/products/id中,“/products/id”是路由。

router

See router in the API reference.请参阅API参考中的router