DEP0136:http finished
类型:仅文档
¥Type: Documentation-only
response.finished 表示 response.end() 是否已被调用,而不是 'finish' 是否已触发并刷新底层数据。
¥response.finished indicates whether response.end() has been
called, not whether 'finish' has been emitted and the underlying data
is flushed.
相应地使用 response.writableFinished 或 response.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.