HTTP/2


稳定性: 1 - 实验性的

¥Stability: 1 - Experimental

http2.client.stream.created

在客户端上创建流时触发。

¥Emitted when a stream is created on the client.

http2.client.stream.start

在客户端上启动流时触发。

¥Emitted when a stream is started on the client.

http2.client.stream.error

在客户端处理流时发生错误时触发。

¥Emitted when an error occurs during the processing of a stream on the client.

http2.client.stream.finish

在客户端接收到流时触发。

¥Emitted when a stream is received on the client.

http2.client.stream.close

在客户端关闭流时触发。可以使用 stream.rstCode 属性检索关闭流时使用的 HTTP/2 错误代码。

¥Emitted when a stream is closed on the client. The HTTP/2 error code used when closing the stream can be retrieved using the stream.rstCode property.

http2.server.stream.created

在服务器创建流时触发。

¥Emitted when a stream is created on the server.

http2.server.stream.start

在服务器上启动流时触发。

¥Emitted when a stream is started on the server.

http2.server.stream.error

在服务器处理流时发生错误时触发。

¥Emitted when an error occurs during the processing of a stream on the server.

http2.server.stream.finish

在服务器上发送流时触发。

¥Emitted when a stream is sent on the server.