HTTP 的详细信息
当 performanceEntry.type
等于 'http'
时,则 performanceEntry.detail
属性将是一个包含额外信息的 <Object>。
如果 performanceEntry.name
等于 HttpClient
,则 detail
将包含以下属性:req
、res
。
而 req
属性将是包含 method
、url
、headers
的 <Object>,res
属性将是包含 statusCode
、statusMessage
、headers
的 <Object>。
如果 performanceEntry.name
等于 HttpRequest
,则 detail
将包含以下属性:req
、res
。
而 req
属性将是包含 method
、url
、headers
的 <Object>,res
属性将是包含 statusCode
、statusMessage
、headers
的 <Object>。
这可能会增加额外的内存开销,并且只能用于诊断目的,而不是默认情况下在生产中打开。
When performanceEntry.type
is equal to 'http'
, the performanceEntry.detail
property will be an <Object> containing additional information.
If performanceEntry.name
is equal to HttpClient
, the detail
will contain the following properties: req
, res
. And the req
property
will be an <Object> containing method
, url
, headers
, the res
property
will be an <Object> containing statusCode
, statusMessage
, headers
.
If performanceEntry.name
is equal to HttpRequest
, the detail
will contain the following properties: req
, res
. And the req
property
will be an <Object> containing method
, url
, headers
, the res
property
will be an <Object> containing statusCode
, statusMessage
, headers
.
This could add additional memory overhead and should only be used for diagnostic purposes, not left turned on in production by default.