HTTP/2('http2')详情


🌐 HTTP/2 ('http2') Details

performanceEntry.type 等于 'http2' 时,performanceEntry.detail 属性将是一个 <Object>,其中包含额外的性能信息。

🌐 When performanceEntry.type is equal to 'http2', the performanceEntry.detail property will be an <Object> containing additional performance information.

如果 performanceEntry.name 等于 Http2Streamdetail 将包含以下属性:

🌐 If performanceEntry.name is equal to Http2Stream, the detail will contain the following properties:

  • bytesRead <number>Http2Stream 接收到的 DATA 帧字节数。
  • bytesWritten <number>Http2Stream 发送的 DATA 帧字节数。
  • id <number> 关联 Http2Stream 的标识符
  • timeToFirstByte <number>PerformanceEntry startTime 到接收到第一个 DATA 帧之间经过的毫秒数。
  • timeToFirstByteSent <number> PerformanceEntry startTime 与发送第一个 DATA 帧之间经过的毫秒数。
  • timeToFirstHeader <number> PerformanceEntry startTime 与接收第一个头之间经过的毫秒数。

如果 performanceEntry.name 等于 Http2Sessiondetail 将包含以下属性:

🌐 If performanceEntry.name is equal to Http2Session, the detail will contain the following properties:

  • bytesRead <number> 接收到的 Http2Session 字节数。
  • bytesWritten <number> 发送此 Http2Session 的字节数。
  • framesReceived <number> Http2Session 接收到的 HTTP/2 帧的数量。
  • framesSent <number> Http2Session 发送的 HTTP/2 帧数量。
  • maxConcurrentStreams <number> Http2Session 生命周期内同时打开的最大流数量。
  • pingRTT <number> 自发送 PING 帧到接收到其确认所经过的毫秒数。只有在 Http2Session 上发送了 PING 帧时才会出现。
  • streamAverageDuration <number> 所有 Http2Stream 实例的平均持续时间(毫秒)。
  • streamCount <number> Http2Session 处理的 Http2Stream 实例数量。
  • type <string> 使用 'server''client' 来识别 Http2Session 的类型。