DEP0063: ServerResponse.prototype.writeHeader()


类型: 仅文档

http 模块 ServerResponse.prototype.writeHeader() API 已弃用。 请改用 ServerResponse.prototype.writeHead()

ServerResponse.prototype.writeHeader() 方法从未被记录为官方支持的 API。

Type: Documentation-only

The http module ServerResponse.prototype.writeHeader() API is deprecated. Please use ServerResponse.prototype.writeHead() instead.

The ServerResponse.prototype.writeHeader() method was never documented as an officially supported API.