HTTP/2
¥Stability: 1 - Experimental
http2.client.stream.created
-
stream
<ClientHttp2Stream> -
headers
<HTTP/2 Headers Object>
在客户端上创建流时触发。
¥Emitted when a stream is created on the client.
http2.client.stream.start
-
stream
<ClientHttp2Stream> -
headers
<HTTP/2 Headers Object>
在客户端上启动流时触发。
¥Emitted when a stream is started on the client.
http2.client.stream.error
-
stream
<ClientHttp2Stream> -
error
<Error>
在客户端处理流时发生错误时触发。
¥Emitted when an error occurs during the processing of a stream on the client.
http2.client.stream.finish
-
stream
<ClientHttp2Stream> -
headers
<HTTP/2 Headers Object> -
flags
<number>
在客户端接收到流时触发。
¥Emitted when a stream is received on the client.
http2.client.stream.close
stream
<ClientHttp2Stream>
在客户端关闭流时触发。可以使用 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
-
stream
<ServerHttp2Stream> -
headers
<HTTP/2 Headers Object>
在服务器创建流时触发。
¥Emitted when a stream is created on the server.
http2.server.stream.start
-
stream
<ServerHttp2Stream> -
headers
<HTTP/2 Headers Object>
在服务器上启动流时触发。
¥Emitted when a stream is started on the server.
http2.server.stream.error
-
stream
<ServerHttp2Stream> -
error
<Error>
在服务器处理流时发生错误时触发。
¥Emitted when an error occurs during the processing of a stream on the server.
http2.server.stream.finish
-
stream
<ServerHttp2Stream> -
headers
<HTTP/2 Headers Object> -
flags
<number>
在服务器上发送流时触发。
¥Emitted when a stream is sent on the server.