Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
机架处理程序究竟做了什么,即有人可以用伪代码解释机架处理程序为传递请求结果所采取的步骤吗?
它处理 HTTP 请求标头和内容,实例化一个 Request 对象。然后它通过中间件将 Request 对象传递给机架应用程序。机架应用程序实例化一个 Response 对象并通过中间件将其发送回,hander 将其转换为 HTTP 响应标头和内容。