http.IncomingMessage 类


http.IncomingMessage 对象由 http.Serverhttp.ClientRequest 创建,并作为参数分别传入 'request''response' 事件。 可以用来访问响应状态、消息头、或数据。

http.IncomingMessage 类实现了可读流接口。

An IncomingMessage object is created by http.Server or http.ClientRequest and passed as the first argument to the 'request' and 'response' event respectively. It may be used to access response status, headers and data.

It implements the Readable Stream interface, as well as the following additional events, methods, and properties.