DEP0136: http 已完成


【DEP0136: http finished

类型:仅文档

【Type: Documentation-only】

response.finished 表示 response.end() 是否已被调用,而不是表示 'finish' 是否已被触发以及底层数据是否已刷新。

相应地使用 response.writableFinishedresponse.writableEnded,以避免产生歧义。

【Use response.writableFinished or response.writableEnded accordingly instead to avoid the ambiguity.】

为了保持现有行为,应将 response.finished 替换为 response.writableEnded

【To maintain existing behavior response.finished should be replaced with response.writableEnded.】