跳到主要内容

Network

网络域允许追踪页面的网络活动。它暴露了关于http、文件、数据及其他请求和响应的信息,包括它们的头部、主体、时间等。

EN
Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.

✅️️ Methods

🔨Network.clearBrowserCache

清除浏览器缓存。

EN
Clears browser cache.

🔨Network.clearBrowserCookies

清除浏览器Cookie。

EN
Clears browser cookies.

🔨Network.deleteCookies

删除具有匹配名称和URL或域名/路径/分区键对的浏览器Cookie。

EN
Deletes browser cookies with matching name and url or domain/path/partitionKey pair.
参数必填标记类型描述原文
name✔️string要移除的Cookie的名称。
ENName of the cookies to remove.
urlstring如果指定,将删除所有具有给定名称且域名和路径与提供的URL匹配的cookie。
ENIf specified, deletes all the cookies with the given name where domain and path match provided URL.
domainstring如果指定,仅删除具有确切域名的Cookie。
ENIf specified, deletes only cookies with the exact domain.
pathstring如果指定,仅删除路径完全匹配的''和``内的内容的cookie。
ENIf specified, deletes only cookies with the exact path.
partitionKey🧪CookiePartitionKey如果指定,仅删除具有给定名称和分区键的Cookie,其中所有分区键属性均与Cookie分区键属性匹配。
ENIf specified, deletes only cookies with the the given name and partitionKey where all partition key attributes match the cookie partition key attribute.

🔨Network.disable

禁用网络跟踪,防止网络事件被发送到客户端。

EN
Disables network tracking, prevents network events from being sent to the client.

🔨Network.enable

启用网络追踪功能,网络事件现在将发送给客户端。

EN
Enables network tracking, network events will now be delivered to the client.
参数必填标记类型描述原文
maxTotalBufferSize🧪integer保留网络负载(XHR等)时使用的缓冲区大小(以字节为单位)。这是此DevTools会话将收集的最大字节数。
ENBuffer size in bytes to use when preserving network payloads (XHRs, etc). This is the maximum number of bytes that will be collected by this DevTools session.
maxResourceBufferSize🧪integer每个资源的缓冲区大小(以字节为单位),用于保存网络负载(XHR等)。
ENPer-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).
maxPostDataSizeinteger请求将发送通知中包含的最长帖子正文大小(以字节为单位)
ENLongest post body size (in bytes) that would be included in requestWillBeSent notification
reportDirectSocketTraffic🧪boolean是否应报告DirectSocket分块发送/接收事件。
ENWhether DirectSocket chunk send/receive events should be reported.
enableDurableMessages🧪boolean启用将响应体存储在渲染器外部,以便这些响应体能在跨进程导航中保留。需要设置maxTotalBufferSize。当前默认值为false。由于在发出Runtime.runIfWaitingForDebugger之前等待Network.enable可能导致死锁,该字段正在被弃用,转而支持专用的configureDurableMessages命令。
ENEnable storing response bodies outside of renderer, so that these survive a cross-process navigation. Requires maxTotalBufferSize to be set. Currently defaults to false. This field is being deprecated in favor of the dedicated configureDurableMessages command, due to the possibility of deadlocks when awaiting Network.enable before issuing Runtime.runIfWaitingForDebugger.

🔨Network.getCookies

返回当前URL的所有浏览器Cookie。根据后端支持情况,将在cookies字段中返回详细的Cookie信息。

EN
Returns all browser cookies for the current URL. Depending on the backend support, will return detailed cookie information in the cookies field.
参数必填标记类型描述原文
urlsarray[string]将获取适用Cookie的URL列表。如果未指定,则假定设置为包含页面及其所有子框架URL的列表。
ENThe list of URLs for which applicable cookies will be fetched. If not specified, it's assumed to be set to the list containing the URLs of the page and all of its subframes.
返回对象类型描述原文
cookiesarray[Cookie]Cookie对象数组。
ENArray of cookie objects.

🔨Network.getRequestPostData

返回随请求发送的发布数据。当请求未附带数据时,将返回错误。

EN
Returns post data sent with the request. Returns an error when no data was sent with the request.
参数必填标记类型描述原文
requestId✔️RequestId获取内容的网络请求标识符。
ENIdentifier of the network request to get content for.
返回对象类型描述原文
postDatastring请求体字符串,省略多部分请求中的文件
ENRequest body string, omitting files from multipart requests
base64Encodedboolean是的,如果内容是以base64格式发送的。
ENTrue, if content was sent as base64.

🔨Network.getResponseBody

返回为给定请求提供的内容。

EN
Returns content served for the given request.
参数必填标记类型描述原文
requestId✔️RequestId获取内容的网络请求标识符。
ENIdentifier of the network request to get content for.
返回对象类型描述原文
bodystring响应正文。
ENResponse body.
base64Encodedboolean是的,如果内容是以 base64 格式发送的。
ENTrue, if content was sent as base64.

🔨Network.setBypassServiceWorker

切换是否忽略每个请求的服务工作者。

EN
Toggles ignoring of service worker for each request.
参数必填标记类型描述原文
bypass✔️boolean绕过服务工作者并从网络加载。
ENBypass service worker and load from network.

🔨Network.setCacheDisabled

切换是否忽略每个请求的缓存。如果为true,则不会使用缓存。

EN
Toggles ignoring cache for each request. If true, cache will not be used.
参数必填标记类型描述原文
cacheDisabled✔️boolean缓存禁用状态。
ENCache disabled state.

🔨Network.setCookie

使用给定的cookie数据设置一个cookie;如果存在等效的cookie,可能会覆盖它们。

EN
Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
参数必填标记类型描述原文
name✔️stringCookie name.
ENCookie name.
value✔️stringCookie值。
ENCookie value.
urlstring与cookie设置相关联的请求URI。该值会影响所创建cookie的默认域名、路径、源端口和源方案值。
ENThe request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie.
domainstringCookie domain.
ENCookie domain.
pathstringCookie 路径。
ENCookie path.
secureboolean如果 cookie 是安全的,则为 True。
ENTrue if cookie is secure.
httpOnlyboolean如果 cookie 是 http-only,则为 True。
ENTrue if cookie is http-only.
sameSiteCookieSameSiteCookie SameSite 类型。
ENCookie SameSite type.
expiresTimeSinceEpochCookie 过期日期,如果未设置则为会话 Cookie
ENCookie expiration date, session cookie if not set
priority🧪CookiePriorityCookie 优先级类型。
ENCookie Priority type.
sourceScheme🧪CookieSourceSchemeCookie 来源方案类型。
ENCookie source scheme type.
sourcePort🧪integerCookie 源端口。有效值为 {-1, [1, 65535]},-1 表示未指定端口。未指定的端口值允许协议客户端模拟旧版 Cookie 的端口作用域。这是一个临时功能,未来将被移除。
ENCookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
partitionKey🧪CookiePartitionKeyCookie partition key。如果未设置,cookie将被设置为未分区。
ENCookie partition key. If not set, the cookie will be set as not partitioned.
返回对象类型描述原文
successboolean始终设置为true。如果发生错误,响应将指示协议错误。
ENAlways set to true. If an error occurs, the response indicates protocol error.

🔨Network.setCookies

设置给定的cookies。

EN
Sets given cookies.
参数必填标记类型描述原文
cookies✔️array[CookieParam]要设置的Cookies。
ENCookies to be set.

🔨Network.setExtraHTTPHeaders

指定是否始终随此页面的请求发送额外的HTTP头。

EN
Specifies whether to always send extra HTTP headers with the requests from this page.
参数必填标记类型描述原文
headers✔️Headers包含额外HTTP头部的映射。
ENMap with extra HTTP headers.

🔨Network.setUserAgentOverride

允许使用给定的字符串覆盖用户代理。

EN
Allows overriding user agent with the given string.
参数必填标记类型描述原文
userAgent✔️string要使用的用户代理。
ENUser agent to use.
acceptLanguagestring要模拟的浏览器语言。
ENBrowser language to emulate.
platformstring平台 navigator.platform 应该返回。
ENThe platform navigator.platform should return.
userAgentMetadata🧪Emulation.UserAgentMetadata在Sec-CH-UA-*头部中发送,并在navigator.userAgentData中返回
ENTo be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData

🔨Network.canClearBrowserCache❌️

指示是否支持清除浏览器缓存。

EN
Tells whether clearing browser cache is supported.
返回对象类型描述原文
resultboolean如果浏览器缓存可以被清除,则为真。
ENTrue if browser cache can be cleared.

🔨Network.canClearBrowserCookies❌️

指示是否支持清除浏览器Cookie。

EN
Tells whether clearing browser cookies is supported.
返回对象类型描述原文
resultboolean如果浏览器cookie可以被清除,则为True。
ENTrue if browser cookies can be cleared.

🔨Network.canEmulateNetworkConditions❌️

判断是否支持网络条件模拟。

EN
Tells whether emulation of network conditions is supported.
返回对象类型描述原文
resultboolean如果支持网络条件模拟,则为真。
ENTrue if emulation of network conditions is supported.

🔨Network.emulateNetworkConditions❌️

激活网络条件模拟。此命令已弃用,推荐使用 emulateNetworkConditionsByRule 和 overrideNetworkState 命令,两者结合使用可达到相同效果。

EN
Activates emulation of network conditions. This command is deprecated in favor of the emulateNetworkConditionsByRule and overrideNetworkState commands, which can be used together to the same effect.
参数必填标记类型描述原文
offline✔️boolean模拟网络断开的真实情况。
ENTrue to emulate internet disconnection.
latency✔️number从请求发送到响应头接收的最小延迟(毫秒)。
ENMinimum latency from request sent to response headers received (ms).
downloadThroughput✔️number最大聚合下载吞吐量(字节/秒)。-1 表示禁用下载限流。
ENMaximal aggregated download throughput (bytes/sec). -1 disables download throttling.
uploadThroughput✔️number最大聚合上传吞吐量(字节/秒)。-1 表示禁用上传限流。
ENMaximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
connectionTypeConnectionType如果已知,连接类型。
ENConnection type if known.
packetLoss🧪numberWebRTC 数据包丢失率(百分比,0-100)。0 表示禁用数据包丢失模拟,100 表示丢弃所有数据包。
ENWebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets.
packetQueueLength🧪integerWebRTC 数据包队列长度(数据包)。0 表示移除任何队列长度限制。
ENWebRTC packet queue length (packet). 0 removes any queue length limitations.
packetReordering🧪booleanWebRTC packetReordering 功能。
ENWebRTC packetReordering feature.

🔨Network.getAllCookies❌️

返回所有浏览器Cookie。根据后端支持情况,将在cookies字段中返回详细的Cookie信息。已弃用。请改用Storage.getCookies。

EN
Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field. Deprecated. Use Storage.getCookies instead.
返回对象类型描述原文
cookiesarray[Cookie]Cookie 对象数组。
ENArray of cookie objects.

🔨Network.clearAcceptedEncodingsOverride🧪

清除由 setAcceptedEncodings 设置的已接受编码

EN
Clears accepted encodings set by setAcceptedEncodings

🔨Network.configureDurableMessages🧪

配置将响应体存储在渲染器外部,使其在跨进程导航中得以保留。如果未设置 maxTotalBufferSize,则禁用持久消息。

EN
Configures storing response bodies outside of renderer, so that these survive a cross-process navigation. If maxTotalBufferSize is not set, durable messages are disabled.
参数必填标记类型描述原文
maxTotalBufferSizeinteger保留网络负载(XHR等)时使用的缓冲区大小(以字节为单位)。
ENBuffer size in bytes to use when preserving network payloads (XHRs, etc).
maxResourceBufferSizeinteger当保留网络负载(XHR等)时,每个资源使用的缓冲区大小(以字节为单位)。
ENPer-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).

🔨Network.emulateNetworkConditionsByRule🧪

使用URL匹配模式为单个请求激活网络条件模拟。与已弃用的Network.emulateNetworkConditions不同,此方法不会影响navigator状态。如需显式修改navigator行为,请使用Network.overrideNetworkState。

EN
Activates emulation of network conditions for individual requests using URL match patterns. Unlike the deprecated Network.emulateNetworkConditions this method does not affect navigator state. Use Network.overrideNetworkState to explicitly modify navigator behavior.
参数必填标记类型描述原文
offline✔️booleanTrue to emulate internet disconnection.
ENTrue to emulate internet disconnection.
matchedNetworkConditions✔️array[NetworkConditions]配置请求匹配条件。如果多个条目匹配一个请求,则第一个条目生效。通过将条件的 urlPattern 留空,可以配置全局条件。这些全局条件也适用于 P2P 连接的节流控制。
ENConfigure conditions for matching requests. If multiple entries match a request, the first entry wins. Global conditions can be configured by leaving the urlPattern for the conditions empty. These global conditions are also applied for throttling of p2p connections.
返回对象类型描述原文
ruleIdsarray[string]每个匹配网络条件条目的唯一标识符。该标识符将包含在受规则影响的请求的requestWillBeSentExtraInfo中。
ENAn id for each entry in matchedNetworkConditions. The id will be included in the requestWillBeSentExtraInfo for requests affected by a rule.

🔨Network.enableDeviceBoundSessions🧪

设置跟踪设备绑定的会话并获取初始会话集。

EN
Sets up tracking device bound sessions and fetching of initial set of sessions.
参数必填标记类型描述原文
enable✔️boolean是否启用或禁用事件。
ENWhether to enable or disable events.

🔨Network.enableReportingApi🧪

启用Reporting API的跟踪功能,现在Reporting API生成的事件将被发送到客户端。启用此功能会为所有现有报告触发'reportingApiReportAdded'事件。

EN
Enables tracking for the Reporting API, events generated by the Reporting API will now be delivered to the client. Enabling triggers 'reportingApiReportAdded' for all existing reports.
参数必填标记类型描述原文
enable✔️boolean是否启用或禁用Reporting API的事件
ENWhether to enable or disable events for the Reporting API

🔨Network.fetchSchemefulSite🧪

获取特定来源的''schemeful site''。

EN
Fetches the schemeful site for a specific origin.
参数必填标记类型描述原文
origin✔️stringURL 来源。
ENThe URL origin.
返回对象类型描述原文
schemefulSitestring对应的schemeful site。
ENThe corresponding schemeful site.

🔨Network.getCertificate🧪

返回DER编码的证书。

EN
Returns the DER-encoded certificate.
参数必填标记类型描述原文
origin✔️string获取证书的来源。
ENOrigin to get certificate for.
返回对象类型描述原文
tableNamesarray[string]

🔨Network.getResponseBodyForInterception🧪

返回为当前被拦截请求提供的内容。

EN
Returns content served for the given currently intercepted request.
参数必填标记类型描述原文
interceptionId✔️InterceptionId获取请求正文的拦截请求标识符。
ENIdentifier for the intercepted request to get body for.
返回对象类型描述原文
bodystring响应正文。
ENResponse body.
base64Encodedboolean是的,如果内容是以base64格式发送的。
ENTrue, if content was sent as base64.

🔨Network.getSecurityIsolationStatus🧪

返回有关COEP/COOP隔离状态的信息。

EN
Returns information about the COEP/COOP isolation status.
参数必填标记类型描述原文
frameIdPage.FrameId如果未提供frameId,则提供目标的状态。
ENIf no frameId is provided, the status of the target is provided.
返回对象类型描述原文
statusSecurityIsolationStatus

🔨Network.loadNetworkResource🧪

获取资源并返回内容。

EN
Fetches the resource and returns the content.
参数必填标记类型描述原文
frameIdPage.FrameId获取资源的框架ID。对于框架目标是必需的,对于工作线程目标则应省略。
ENFrame id to get the resource for. Mandatory for frame targets, and should be omitted for worker targets.
url✔️string获取内容的资源URL。
ENURL of the resource to get content for.
options✔️LoadNetworkResourceOptions请求的选项。
ENOptions for the request.
返回对象类型描述原文
resourceLoadNetworkResourcePageResult

🔨Network.overrideNetworkState🧪

覆盖 ''navigator.onLine'' 和 ''navigator.connection'' 的状态。

EN
Override the state of navigator.onLine and navigator.connection.
参数必填标记类型描述原文
offline✔️booleanTrue to emulate internet disconnection.
ENTrue to emulate internet disconnection.
latency✔️number从请求发送到响应头接收的最小延迟(毫秒)。
ENMinimum latency from request sent to response headers received (ms).
downloadThroughput✔️number最大聚合下载吞吐量(字节/秒)。-1 表示禁用下载限流。
ENMaximal aggregated download throughput (bytes/sec). -1 disables download throttling.
uploadThroughput✔️number最大聚合上传吞吐量(字节/秒)。-1 表示禁用上传限流。
ENMaximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
connectionTypeConnectionType如果已知,连接类型。
ENConnection type if known.

🔨Network.replayXHR🧪

此方法发送一个与原始请求完全相同的新XMLHttpRequest。以下参数应保持一致:method、url、async、request body、extra headers、withCredentials attribute、user、password。

EN
This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.
参数必填标记类型描述原文
requestId✔️RequestId重放XHR的标识符。
ENIdentifier of XHR to replay.

🔨Network.searchInResponseBody🧪

在响应内容中搜索指定字符串。

EN
Searches for given string in response content.
参数必填标记类型描述原文
requestId✔️RequestId搜索网络响应的标识符。
ENIdentifier of the network response to search.
query✔️string要搜索的字符串。
ENString to search for.
caseSensitiveboolean如果为真,则搜索区分大小写。
ENIf true, search is case sensitive.
isRegexboolean如果为真,则将字符串参数视为正则表达式。
ENIf true, treats string parameter as regex.
返回对象类型描述原文
resultarray[Debugger.SearchMatch]搜索结果列表。
ENList of search matches.

🔨Network.setAcceptedEncodings🧪

设置一个将被接受的内容编码列表。空列表意味着不接受任何编码。

EN
Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.
参数必填标记类型描述原文
encodings✔️array[ContentEncoding]接受的编码格式列表。
ENList of accepted content encodings.

🔨Network.setAttachDebugStack🧪

指定是否在请求中附加页面脚本堆栈ID

EN
Specifies whether to attach a page script stack id in requests
参数必填标记类型描述原文
enabled✔️boolean是否附加页面脚本堆栈以用于调试目的。
ENWhether to attach a page script stack for debugging purpose.

🔨Network.setBlockedURLs🧪

阻止来自加载的URL。

EN
Blocks URLs from loading.
参数必填标记类型描述原文
urlPatternsarray[BlockPattern]按照给定的顺序匹配模式。这些模式也优先于 urls 中定义的任何通配符模式。
ENPatterns to match in the order in which they are given. These patterns also take precedence over any wildcard patterns defined in urls.
urls❌️array[string]要屏蔽的URL模式。允许使用通配符('*')。
ENURL patterns to block. Wildcards ('*') are allowed.

🔨Network.setCookieControls🧪

设置第三方 Cookie 访问控制''需要刷新页面才能观察到新的 Cookie 行为``

EN
Sets Controls for third-party cookie access Page reload is required before the new cookie behavior will be observed
参数必填标记类型描述原文
enableThirdPartyCookieRestriction✔️boolean是否启用了第三方Cookie限制。
ENWhether 3pc restriction is enabled.
disableThirdPartyCookieMetadata✔️boolean是否应启用第三方Cookie宽限期例外;默认情况下为false。
ENWhether 3pc grace period exception should be enabled; false by default.
disableThirdPartyCookieHeuristics✔️boolean是否应启用第三方Cookie启发式例外;默认情况下为false。
ENWhether 3pc heuristics exceptions should be enabled; false by default.

🔨Network.streamResourceContent🧪

启用对给定请求ID(requestId)的响应流式传输。如果启用,dataReceived事件将包含流式传输期间接收到的数据。

EN
Enables streaming of the response for the given requestId. If enabled, the dataReceived event contains the data that was received during streaming.
参数必填标记类型描述原文
requestId✔️RequestId要流式传输的请求标识符。
ENIdentifier of the request to stream.
返回对象类型描述原文
bufferedDatastring在流式传输启用前已缓冲的数据。(通过JSON传递时编码为base64字符串)
ENData that has been buffered until streaming is enabled. (Encoded as a base64 string when passed over JSON)

🔨Network.takeResponseBodyForInterceptionAsStream🧪

返回表示响应体的流的一个句柄。请注意,在此命令之后,被拦截的请求不能按原样继续——您需要取消它或提供响应体。该流仅支持顺序读取,如果指定了位置,IO.read 将会失败。

EN
Returns a handle to the stream representing the response body. Note that after this command, the intercepted request can't be continued as is -- you either need to cancel it or to provide the response body. The stream only supports sequential read, IO.read will fail if the position is specified.
参数必填标记类型描述原文
interceptionId✔️InterceptionId
返回对象类型描述原文
streamIO.StreamHandle

🔨Network.continueInterceptedRequest🧪❌️

对Network.requestIntercepted的响应,该响应要么修改请求以继续执行任何修改,要么阻止它,要么使用提供的响应字节完成它。如果因此发生网络获取并遇到重定向,将发送一个额外的Network.requestIntercepted事件,并带有相同的InterceptionId。已弃用,请改用Fetch.continueRequest、Fetch.fulfillRequest和Fetch.failRequest。

EN
Response to Network.requestIntercepted which either modifies the request to continue with any modifications, or blocks it, or completes it with the provided response bytes. If a network fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted event will be sent with the same InterceptionId. Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.
参数必填标记类型描述原文
interceptionId✔️InterceptionId
errorReasonErrorReason如果设置此项,将导致请求因给定原因而失败。对于标记为 isNavigationRequest 的请求,传递 Aborted 也会取消导航。不得在响应 authChallenge 时设置。
ENIf set this causes the request to fail with the given reason. Passing Aborted for requests marked with isNavigationRequest also cancels the navigation. Must not be set in response to an authChallenge.
rawResponsestring如果设置,请求将使用提供的base64编码原始响应(包含HTTP状态行和头部信息等)完成。不得在响应authChallenge时设置此选项。(通过JSON传递时编码为base64字符串)
ENIf set the requests completes using with the provided base64 encoded raw response, including HTTP status line and headers etc... Must not be set in response to an authChallenge. (Encoded as a base64 string when passed over JSON)
urlstring如果设置了该选项,请求的URL将被修改,且这种修改对页面不可见。不得在响应authChallenge时设置。
ENIf set the request url will be modified in a way that's not observable by page. Must not be set in response to an authChallenge.
methodstring如果设置此选项,将允许覆盖请求方法。不得在响应身份验证质询时设置。
ENIf set this allows the request method to be overridden. Must not be set in response to an authChallenge.
postDatastring如果设置此项,将允许设置 postData。在响应 authChallenge 时不得设置。
ENIf set this allows postData to be set. Must not be set in response to an authChallenge.
headersHeaders如果设置此选项,允许更改请求头。在响应身份验证挑战时不得设置。
ENIf set this allows the request headers to be changed. Must not be set in response to an authChallenge.
authChallengeResponseAuthChallengeResponse对带有身份验证挑战(authChallenge)的请求拦截(requestIntercepted)的响应。否则不得设置。
ENResponse to a requestIntercepted with an authChallenge. Must not be set otherwise.

🔨Network.setRequestInterception🧪❌️

设置要拦截的请求,这些请求需匹配提供的模式并可选择性地匹配资源类型。已弃用,请改用 Fetch.enable

EN
Sets the requests to intercept that match the provided patterns and optionally resource types. Deprecated, please use Fetch.enable instead.
参数必填标记类型描述原文
patterns✔️array[RequestPattern]符合这些模式中任意一个的请求将被转发,并等待相应的''continueInterceptedRequest''调用。
ENRequests matching any of these patterns will be forwarded and wait for the corresponding continueInterceptedRequest call.

✅️️ Events

👋Network.dataReceived

当通过网络接收到数据块时触发。

EN
Fired when data chunk was received over the network.
参数必填标记类型描述原文
requestId✔️RequestId请求标识符。
ENRequest identifier.
timestamp✔️MonotonicTime时间戳。
ENTimestamp.
dataLength✔️integer数据块长度。
ENData chunk length.
encodedDataLength✔️integer实际接收的字节数(对于压缩编码,可能小于数据长度)。
ENActual bytes received (might be less than dataLength for compressed encodings).
data🧪string已接收的数据。(在通过JSON传递时,编码为base64字符串)
ENData that was received. (Encoded as a base64 string when passed over JSON)

👋Network.eventSourceMessageReceived

当接收到 EventSource 消息时触发。

EN
Fired when EventSource message is received.
参数必填标记类型描述原文
requestId✔️RequestId请求标识符。
ENRequest identifier.
timestamp✔️MonotonicTime时间戳。
ENTimestamp.
eventName✔️string消息类型。
ENMessage type.
eventId✔️string消息标识符。
ENMessage identifier.
data✔️string消息内容。
ENMessage content.

👋Network.loadingFailed

当HTTP请求加载失败时触发。

EN
Fired when HTTP request has failed to load.
参数必填标记类型描述原文
requestId✔️RequestId请求标识符。
ENRequest identifier.
timestamp✔️MonotonicTimeTimestamp.
ENTimestamp.
type✔️ResourceType资源类型。
ENResource type.
errorText✔️string错误信息。网络错误列表:https://cs.chromium.org/chromium/src/net/base/net_error_list.h
ENError message. List of network errors: https://cs.chromium.org/chromium/src/net/base/net_error_list.h
canceledboolean如果加载被取消,则为真。
ENTrue if loading was canceled.
blockedReasonBlockedReason加载被阻止的原因(如果有的话)。
ENThe reason why loading was blocked, if any.
corsErrorStatusCorsErrorStatus加载被CORS阻止的原因(如果有的话)。
ENThe reason why loading was blocked by CORS, if any.

👋Network.loadingFinished

当HTTP请求完成加载时触发。

EN
Fired when HTTP request has finished loading.
参数必填标记类型描述原文
requestId✔️RequestId请求标识符。
ENRequest identifier.
timestamp✔️MonotonicTime时间戳。
ENTimestamp.
encodedDataLength✔️number此请求接收的总字节数。
ENTotal number of bytes received for this request.

👋Network.requestServedFromCache

如果请求最终从缓存加载,则触发此事件。

EN
Fired if request ended up loading from cache.
参数必填标记类型描述原文
requestId✔️RequestId请求标识符。
ENRequest identifier.

👋Network.requestWillBeSent

当页面即将发送HTTP请求时触发。

EN
Fired when page is about to send HTTP request.
参数必填标记类型描述原文
requestId✔️RequestId请求标识符。
ENRequest identifier.
loaderId✔️LoaderIdLoader标识符。如果请求是从worker获取的,则为空字符串。
ENLoader identifier. Empty string if the request is fetched from worker.
documentURL✔️string此请求加载的文档的URL。
ENURL of the document this request is loaded for.
request✔️Request请求数据。
ENRequest data.
timestamp✔️MonotonicTime时间戳。
ENTimestamp.
wallTime✔️TimeSinceEpochTimestamp.
ENTimestamp.
initiator✔️Initiator请求发起者。
ENRequest initiator.
redirectHasExtraInfo✔️🧪boolean当redirectResponse被填充时,此标志指示是否将为刚刚重定向的请求发出requestWillBeSentExtraInfo和responseReceivedExtraInfo事件。
ENIn the case that redirectResponse is populated, this flag indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for the request which was just redirected.
redirectResponseResponse重定向响应数据。
ENRedirect response data.
typeResourceType此资源的类型。
ENType of this resource.
frameIdPage.FrameIdFrame identifier.
ENFrame identifier.
hasUserGestureboolean请求是否由用户手势发起。默认为 false。
ENWhether the request is initiated by a user gesture. Defaults to false.
renderBlockingBehavior🧪RenderBlockingBehavior请求的渲染阻塞行为。
ENThe render-blocking behavior of the request.

👋Network.responseReceived

当HTTP响应可用时触发。

EN
Fired when HTTP response is available.
参数必填标记类型描述原文
requestId✔️RequestId请求标识符。
ENRequest identifier.
loaderId✔️LoaderId加载器标识符。如果请求是从工作线程获取的,则为空字符串。
ENLoader identifier. Empty string if the request is fetched from worker.
timestamp✔️MonotonicTime时间戳。
ENTimestamp.
type✔️ResourceType资源类型。
ENResource type.
response✔️Response响应数据。
ENResponse data.
hasExtraInfo✔️🧪boolean表示对于此请求,是否将或已经触发了 requestWillBeSentExtraInforesponseReceivedExtraInfo 事件。
ENIndicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for this request.
frameIdPage.FrameId帧标识符。
ENFrame identifier.

👋Network.webSocketClosed

当WebSocket关闭时触发。

EN
Fired when WebSocket is closed.
参数必填标记类型描述原文
requestId✔️RequestId请求标识符。
ENRequest identifier.
timestamp✔️MonotonicTimeTimestamp.
ENTimestamp.

👋Network.webSocketCreated

在WebSocket创建时触发。

EN
Fired upon WebSocket creation.
参数必填标记类型描述原文
requestId✔️RequestId请求标识符。
ENRequest identifier.
url✔️stringWebSocket 请求 URL。
ENWebSocket request URL.
initiatorInitiator请求发起方。
ENRequest initiator.

👋Network.webSocketFrameError

当WebSocket消息错误发生时触发。

EN
Fired when WebSocket message error occurs.
参数必填标记类型描述原文
requestId✔️RequestId请求标识符。
ENRequest identifier.
timestamp✔️MonotonicTime时间戳。
ENTimestamp.
errorMessage✔️stringWebSocket 错误信息。
ENWebSocket error message.

👋Network.webSocketFrameReceived

当接收到WebSocket消息时触发。

EN
Fired when WebSocket message is received.
参数必填标记类型描述原文
requestId✔️RequestId请求标识符。
ENRequest identifier.
timestamp✔️MonotonicTimeTimestamp.
ENTimestamp.
response✔️WebSocketFrameWebSocket响应数据。
ENWebSocket response data.

👋Network.webSocketFrameSent

当WebSocket消息被发送时触发。

EN
Fired when WebSocket message is sent.
参数必填标记类型描述原文
requestId✔️RequestId请求标识符。
ENRequest identifier.
timestamp✔️MonotonicTime时间戳。
ENTimestamp.
response✔️WebSocketFrameWebSocket响应数据。
ENWebSocket response data.

👋Network.webSocketHandshakeResponseReceived

当WebSocket握手响应可用时触发。

EN
Fired when WebSocket handshake response becomes available.
参数必填标记类型描述原文
requestId✔️RequestId请求标识符。
ENRequest identifier.
timestamp✔️MonotonicTime时间戳。
ENTimestamp.
response✔️WebSocketResponseWebSocket响应数据。
ENWebSocket response data.

👋Network.webSocketWillSendHandshakeRequest

当WebSocket即将发起握手时触发。

EN
Fired when WebSocket is about to initiate handshake.
参数必填标记类型描述原文
requestId✔️RequestId请求标识符。
ENRequest identifier.
timestamp✔️MonotonicTime时间戳。
ENTimestamp.
wallTime✔️TimeSinceEpochUTC 时间戳。
ENUTC Timestamp.
request✔️WebSocketRequestWebSocket请求数据。
ENWebSocket request data.

👋Network.webTransportClosed

当WebTransport被释放时触发。

EN
Fired when WebTransport is disposed.
参数必填标记类型描述原文
transportId✔️RequestIdWebTransport 标识符。
ENWebTransport identifier.
timestamp✔️MonotonicTime时间戳。
ENTimestamp.

👋Network.webTransportConnectionEstablished

当WebTransport握手完成时触发。

EN
Fired when WebTransport handshake is finished.
参数必填标记类型描述原文
transportId✔️RequestIdWebTransport 标识符。
ENWebTransport identifier.
timestamp✔️MonotonicTime时间戳。
ENTimestamp.

👋Network.webTransportCreated

在WebTransport创建时触发。

EN
Fired upon WebTransport creation.
参数必填标记类型描述原文
transportId✔️RequestIdWebTransport 标识符。
ENWebTransport identifier.
url✔️stringWebTransport 请求 URL。
ENWebTransport request URL.
timestamp✔️MonotonicTime时间戳。
ENTimestamp.
initiatorInitiator请求发起者。
ENRequest initiator.

👋Network.deviceBoundSessionEventOccurred🧪

当发生设备绑定会话事件时触发。

EN
Triggered when a device bound session event occurs.
参数必填标记类型描述原文
eventId✔️DeviceBoundSessionEventId此会话事件的唯一标识符。
ENA unique identifier for this session event.
site✔️string此会话事件关联的站点。
ENThe site this session event is associated with.
succeeded✔️boolean此事件是否被视为成功。
ENWhether this event was considered successful.
sessionIdstring与此事件关联的会话ID。对于失败的事件,此字段可能为空。
ENThe session ID this event is associated with. May not be populated for failed events.
creationEventDetailsCreationEventDetails以下是不同会话事件类型的详细信息。''和``中的内容保持不变。
ENThe below are the different session event type details. Exactly one is populated.
refreshEventDetailsRefreshEventDetails
terminationEventDetailsTerminationEventDetails
challengeEventDetailsChallengeEventDetails

👋Network.deviceBoundSessionsAdded🧪

当初始的设备绑定会话集合被添加时触发。

EN
Triggered when the initial set of device bound sessions is added.
参数必填标记类型描述原文
sessions✔️array[DeviceBoundSession]设备绑定的会话。
ENThe device bound sessions.

👋Network.directTCPSocketAborted🧪

当 direct_socket.TCPSocket 被中止时触发。

EN
Fired when direct_socket.TCPSocket is aborted.
参数必填标记类型描述原文
identifier✔️RequestId
errorMessage✔️string
timestamp✔️MonotonicTime

👋Network.directTCPSocketChunkReceived🧪

当从TCP直接套接字流接收到数据时触发。

EN
Fired when data is received from tcp direct socket stream.
参数必填标记类型描述原文
identifier✔️RequestId
data✔️string
timestamp✔️MonotonicTime

👋Network.directTCPSocketChunkSent🧪

当数据被发送到tcp直接套接字流时触发。

EN
Fired when data is sent to tcp direct socket stream.
参数必填标记类型描述原文
identifier✔️RequestId
data✔️string
timestamp✔️MonotonicTime

👋Network.directTCPSocketClosed🧪

direct_socket.TCPSocket 关闭时触发。

EN
Fired when direct_socket.TCPSocket is closed.
参数必填标记类型描述原文
identifier✔️RequestId
timestamp✔️MonotonicTime

👋Network.directTCPSocketCreated🧪

在创建 direct_socket.TCPSocket 时触发。

EN
Fired upon direct_socket.TCPSocket creation.
参数必填标记类型描述原文
identifier✔️RequestId
remoteAddr✔️string
remotePort✔️integer无符号整数 16。
ENUnsigned int 16.
options✔️DirectTCPSocketOptions
timestamp✔️MonotonicTime
initiatorInitiator

👋Network.directTCPSocketOpened🧪

当 direct_socket.TCPSocket 连接被打开时触发。

EN
Fired when direct_socket.TCPSocket connection is opened.
参数必填标记类型描述原文
identifier✔️RequestId
remoteAddr✔️string
remotePort✔️integer预期为无符号整数。
ENExpected to be unsigned integer.
timestamp✔️MonotonicTime
localAddrstring
localPortinteger预期为无符号整数。
ENExpected to be unsigned integer.

👋Network.directUDPSocketAborted🧪

当 direct_socket.UDPSocket 被中止时触发。

EN
Fired when direct_socket.UDPSocket is aborted.
参数必填标记类型描述原文
identifier✔️RequestId
errorMessage✔️string
timestamp✔️MonotonicTime

👋Network.directUDPSocketChunkReceived🧪

当从UDP直接套接字流接收到消息时触发。

EN
Fired when message is received from udp direct socket stream.
参数必填标记类型描述原文
identifier✔️RequestId
message✔️DirectUDPMessage
timestamp✔️MonotonicTime

👋Network.directUDPSocketChunkSent🧪

当消息被发送到 UDP 直接套接字流时触发。

EN
Fired when message is sent to udp direct socket stream.
参数必填标记类型描述原文
identifier✔️RequestId
message✔️DirectUDPMessage
timestamp✔️MonotonicTime

👋Network.directUDPSocketClosed🧪

当 direct_socket.UDPSocket 被关闭时触发。

EN
Fired when direct_socket.UDPSocket is closed.
参数必填标记类型描述原文
identifier✔️RequestId
timestamp✔️MonotonicTime

👋Network.directUDPSocketCreated🧪

在直接套接字.UDP套接字创建时触发。

EN
Fired upon direct_socket.UDPSocket creation.
参数必填标记类型描述原文
identifier✔️RequestId
options✔️DirectUDPSocketOptions
timestamp✔️MonotonicTime
initiatorInitiator

👋Network.directUDPSocketJoinedMulticastGroup🧪

参数必填标记类型描述原文
identifier✔️RequestId
IPAddress✔️string

👋Network.directUDPSocketLeftMulticastGroup🧪

参数必填标记类型描述原文
identifier✔️RequestId
IPAddress✔️string

👋Network.directUDPSocketOpened🧪

当 direct_socket.UDPSocket 连接被打开时触发。

EN
Fired when direct_socket.UDPSocket connection is opened.
参数必填标记类型描述原文
identifier✔️RequestId
localAddr✔️string
localPort✔️integer预期为无符号整数。
ENExpected to be unsigned integer.
timestamp✔️MonotonicTime
remoteAddrstring
remotePortinteger预期为无符号整数。
ENExpected to be unsigned integer.

👋Network.policyUpdated🧪

安全策略更新后触发一次。

EN
Fired once security policy has been updated.

👋Network.reportingApiEndpointsChangedForOrigin🧪

参数必填标记类型描述原文
origin✔️string配置端点的文档来源。
ENOrigin of the document(s) which configured the endpoints.
endpoints✔️array[ReportingApiEndpoint]

👋Network.reportingApiReportAdded🧪

每当添加新报告时发送。并且在为所有现有报告执行 'enableReportingApi' 之后。

EN
Is sent whenever a new report is added. And after 'enableReportingApi' for all existing reports.
参数必填标记类型描述原文
report✔️ReportingApiReport

👋Network.reportingApiReportUpdated🧪

参数必填标记类型描述原文
report✔️ReportingApiReport

👋Network.requestWillBeSentExtraInfo🧪

当网络堆栈提供关于requestWillBeSent事件的额外信息时触发。并非每个requestWillBeSent事件都会对应触发额外的requestWillBeSentExtraInfo事件,且对于同一请求,无法保证requestWillBeSentrequestWillBeSentExtraInfo的触发先后顺序。

EN
Fired when additional information about a requestWillBeSent event is available from the network stack. Not every requestWillBeSent event will have an additional requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent or requestWillBeSentExtraInfo will be fired first for the same request.
参数必填标记类型描述原文
requestId✔️RequestId请求标识符。用于将此信息与现有的 requestWillBeSent 事件进行匹配。
ENRequest identifier. Used to match this information to an existing requestWillBeSent event.
associatedCookies✔️array[AssociatedCookie]与请求URL可能关联的Cookie列表。这包括随请求发送的Cookie和未发送的Cookie;后者通过设置blockedReasons字段来区分。
ENA list of cookies potentially associated to the requested URL. This includes both cookies sent with the request and the ones not sent; the latter are distinguished by having blockedReasons field set.
headers✔️Headers原始请求头,它们将通过网络线路发送。
ENRaw request headers as they will be sent over the wire.
connectTiming✔️🧪ConnectTiming请求的连接计时信息。
ENConnection timing information for the request.
deviceBoundSessionUsagesarray[DeviceBoundSessionWithUsage]在此次请求中,请求站点的设备绑定会话是如何被使用的。
ENHow the request site's device bound sessions were used during this request.
clientSecurityStateClientSecurityState为请求设置的客户端安全状态。
ENThe client security state set for the request.
siteHasCookieInOtherPartitionboolean该站点是否在不同于当前分区的分区中存储了分区Cookie。
ENWhether the site has partitioned cookies stored in a partition different than the current one.
appliedNetworkConditionsIdstring网络条件ID,如果此请求受到通过emulateNetworkConditionsByRule配置的网络条件影响。
ENThe network conditions id if this request was affected by network conditions configured via emulateNetworkConditionsByRule.

👋Network.resourceChangedPriority🧪

当资源加载优先级发生变化时触发

EN
Fired when resource loading priority is changed
参数必填标记类型描述原文
requestId✔️RequestId请求标识符。
ENRequest identifier.
newPriority✔️ResourcePriority新优先级
ENNew priority
timestamp✔️MonotonicTime时间戳。
ENTimestamp.

👋Network.responseReceivedEarlyHints🧪

当接收到103早期提示标头以及常规响应时触发。并非每个responseReceived事件都会触发responseReceivedEarlyHints。每个responseReceived事件最多只能触发一个responseReceivedEarlyHints。

EN
Fired when 103 Early Hints headers is received in addition to the common response. Not every responseReceived event will have an responseReceivedEarlyHints fired. Only one responseReceivedEarlyHints may be fired for eached responseReceived event.
参数必填标记类型描述原文
requestId✔️RequestId请求标识符。用于将此信息与另一个responseReceived事件进行匹配。
ENRequest identifier. Used to match this information to another responseReceived event.
headers✔️Headers原始响应头,即通过网络接收到的原始数据。响应中的重复头会以单个键的形式表示,其值使用 \n 作为分隔符进行连接。另请参阅包含 HTTP/1.* 原始文本的 headersText
ENRaw response headers as they were received over the wire. Duplicate headers in the response are represented as a single key with their values concatentated using \n as the separator. See also headersText that contains verbatim text for HTTP/1.*.

👋Network.responseReceivedExtraInfo🧪

当网络堆栈提供了关于responseReceived事件的额外信息时触发。并非每个responseReceived事件都会对应一个额外的responseReceivedExtraInfo,并且responseReceivedExtraInfo可能在responseReceived之前或之后触发。

EN
Fired when additional information about a responseReceived event is available from the network stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for it, and responseReceivedExtraInfo may be fired before or after responseReceived.
参数必填标记类型描述原文
requestId✔️RequestId请求标识符。用于将此信息与另一个responseReceived事件匹配。
ENRequest identifier. Used to match this information to another responseReceived event.
blockedCookies✔️array[BlockedSetCookieWithReason]一份未从响应中存储的cookie列表,以及相应的阻止原因。这里的cookie可能因语法错误而无效,这些错误通过无效cookie行字符串而非正确cookie来表示。
ENA list of cookies which were not stored from the response along with the corresponding reasons for blocking. The cookies here may not be valid due to syntax errors, which are represented by the invalid cookie line string instead of a proper cookie.
headers✔️Headers原始响应头,即通过网络接收到的原始形式。响应中的重复头字段会以单个键表示,其值使用 \n 作为分隔符进行拼接。另请参阅包含 HTTP/1.* 原始文本的 headersText
ENRaw response headers as they were received over the wire. Duplicate headers in the response are represented as a single key with their values concatentated using \n as the separator. See also headersText that contains verbatim text for HTTP/1.*.
resourceIPAddressSpace✔️IPAddressSpace资源的IP地址空间。地址空间只有在传输建立连接后才能确定,因此我们无法在requestWillBeSentExtraInfo中发送。
ENThe IP address space of the resource. The address space can only be determined once the transport established the connection, so we can't send it in requestWillBeSentExtraInfo.
statusCode✔️integer响应的状态码。这在请求失败且未触发responseReceived事件的情况下非常有用,例如CORS错误。对于缓存请求,这也是正确的状态码,此时responseReceived中的状态码为200,而此处的状态码将为304。
ENThe status code of the response. This is useful in cases the request failed and no responseReceived event is triggered, which is the case for, e.g., CORS errors. This is also the correct status code for cached requests, where the status in responseReceived is a 200 and this will be 304.
headersTextstring原始响应头文本,即通过网络接收到的原始文本。原始文本可能并不总是可用,例如在HTTP/2或QUIC的情况下。
ENRaw response header text as it was received over the wire. The raw text may not always be available, such as in the case of HTTP/2 or QUIC.
cookiePartitionKey🧪CookiePartitionKey用于存储此响应中设置的已分区 Cookie 的 Cookie 分区密钥。仅在启用分区 Cookie 时发送。
ENThe cookie partition key that will be used to store partitioned cookies set in this response. Only sent when partitioned cookies are enabled.
cookiePartitionKeyOpaqueboolean如果启用了分区cookies,但分区键无法序列化为字符串,则为True。
ENTrue if partitioned cookies are enabled, but the partition key is not serializable to string.
exemptedCookiesarray[ExemptedSetCookieWithReason]一份本应被第三方Cookie拦截(3PCD)阻止但被豁免并因相应原因从响应中存储的Cookie列表。
ENA list of cookies which should have been blocked by 3PCD but are exempted and stored from the response with the corresponding reason.

👋Network.signedExchangeReceived🧪

当通过网络接收到一个签名交换时触发

EN
Fired when a signed exchange was received over the network
参数必填标记类型描述原文
requestId✔️RequestId请求标识符。
ENRequest identifier.
info✔️SignedExchangeInfo有关已签名交换响应的信息。
ENInformation about the signed exchange response.

👋Network.trustTokenOperationDone🧪

对于每个信任令牌操作,该事件仅触发一次。根据操作类型以及操作成功与否,事件会在相应请求发送之前或收到响应之后触发。

EN
Fired exactly once for each Trust Token operation. Depending on the type of the operation and whether the operation succeeded or failed, the event is fired before the corresponding request was sent or after the response was received.
参数必填标记类型描述原文
status✔️string操作的成功或错误详细状态。'AlreadyExists' 同样表示操作成功,因为操作结果已存在,因此操作被预先中止(例如缓存命中)。
允许值:Ok, InvalidArgument, MissingIssuerKeys, FailedPrecondition, ResourceExhausted, AlreadyExists, ResourceLimited, Unauthorized, BadResponse, InternalError, UnknownError, FulfilledLocally, SiteIssuerLimit
ENDetailed success or error status of the operation. 'AlreadyExists' also signifies a successful operation, as the result of the operation already exists und thus, the operation was abort preemptively (e.g. a cache hit).
Allowed Values: Ok, InvalidArgument, MissingIssuerKeys, FailedPrecondition, ResourceExhausted, AlreadyExists, ResourceLimited, Unauthorized, BadResponse, InternalError, UnknownError, FulfilledLocally, SiteIssuerLimit
type✔️TrustTokenOperationType
requestId✔️RequestId
topLevelOriginstring顶级来源。尝试操作所处的上下文环境。
ENTop level origin. The context in which the operation was attempted.
issuerOriginstring在“发行”或“赎回”操作中,发行方的来源。
ENOrigin of the issuer in case of a "Issuance" or "Redemption" operation.
issuedTokenCountinteger在成功的“发行”操作中获取的信任令牌数量。
ENThe number of obtained Trust Tokens on a successful "Issuance" operation.

👋Network.requestIntercepted🧪❌️

被拦截的HTTP请求的详细信息,该请求必须被允许、阻止、修改或模拟。已弃用,请改用Fetch.requestPaused。

EN
Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead.
参数必填标记类型描述原文
interceptionId✔️InterceptionId页面发出的每个请求都会有一个唯一的ID,但如果在该请求处理过程中遇到任何重定向,它们将使用与原始请求相同的ID进行报告。同样,如果需要HTTP身份验证,也会使用相同的请求ID。
ENEach request the page makes will have a unique id, however if any redirects are encountered while processing that fetch, they will be reported with the same id as the original fetch. Likewise if HTTP authentication is needed then the same fetch id will be used.
request✔️Request
frameId✔️Page.FrameId发起请求的帧的ID。
ENThe id of the frame that initiated the request.
resourceType✔️ResourceType请求的资源将如何被使用。
ENHow the requested resource will be used.
isNavigationRequest✔️boolean这是否为导航请求,该请求可以完全中止导航。
ENWhether this is a navigation request, which can abort the navigation completely.
isDownloadboolean设置请求是否为会导致下载的导航。仅在从服务器收到响应后(即HeadersReceived阶段)出现。
ENSet if the request is a navigation that will result in a download. Only present after response is received from the server (i.e. HeadersReceived stage).
redirectUrlstring重定向位置,仅在拦截到重定向时发送。
ENRedirect location, only sent if a redirect was intercepted.
authChallengeAuthChallenge授权质询的详细信息。如果设置了此项,则 continueInterceptedRequest 必须包含 authChallengeResponse
ENDetails of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse.
responseErrorReasonErrorReason如果在响应阶段被拦截,或者在拦截请求时发生重定向,则会出现响应错误。
ENResponse error if intercepted at response stage or if redirect occurred while intercepting request.
responseStatusCodeinteger如果拦截发生在响应阶段,或者在拦截请求时发生重定向,或者发生身份验证重试,则返回响应代码。
ENResponse code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred.
responseHeadersHeaders如果响应在响应阶段被拦截,或者在拦截请求时发生重定向,或者发生身份验证重试,则返回响应头。
ENResponse headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred.
requestIdRequestId如果被拦截的请求触发了相应的requestWillBeSent事件,那么这个requestId将与requestWillBeSent事件中的requestId相同。
ENIf the intercepted request had a corresponding requestWillBeSent event fired for it, then this requestId will be the same as the requestId present in the requestWillBeSent event.

✅️️ Types

📌Network.BlockedReason

请求被阻止的原因。
允许的值:othercspmixed-contentorigininspectorintegritysubresource-filtercontent-typecoep-frame-resource-needs-coep-headercoop-sandboxed-iframe-cannot-navigate-to-coop-pagecorp-not-same-origincorp-not-same-origin-after-defaulted-to-same-origin-by-coepcorp-not-same-origin-after-defaulted-to-same-origin-by-dipcorp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dipcorp-not-same-sitesri-message-signature-mismatch

EN
The reason why request was blocked.
Allowed Values: other, csp, mixed-content, origin, inspector, integrity, subresource-filter, content-type, coep-frame-resource-needs-coep-header, coop-sandboxed-iframe-cannot-navigate-to-coop-page, corp-not-same-origin, corp-not-same-origin-after-defaulted-to-same-origin-by-coep, corp-not-same-origin-after-defaulted-to-same-origin-by-dip, corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip, corp-not-same-site, sri-message-signature-mismatch

返回类型:string


📌Network.CachedResource

关于缓存资源的信息。

EN
Information about the cached resource.

返回类型:object

属性必填标记类型描述原文
url✔️string资源URL。这是原始网络请求的URL。
ENResource URL. This is the url of the original network request.
type✔️ResourceType此资源的类型。
ENType of this resource.
responseResponse缓存的响应数据。
ENCached response data.
bodySize✔️number缓存响应体大小。
ENCached response body size.

📌Network.CertificateTransparencyCompliance

该请求是否符合证书透明度政策。
允许值:unknownnot-compliantcompliant

EN
Whether the request complied with Certificate Transparency policy.
Allowed Values: unknown, not-compliant, compliant

返回类型:string


📌Network.ConnectionType

浏览器所采用的基础连接技术。
允许的取值:nonecellular2gcellular3gcellular4gbluetoothethernetwifiwimaxother

EN
The underlying connection technology that the browser is supposedly using.
Allowed Values: none, cellular2g, cellular3g, cellular4g, bluetooth, ethernet, wifi, wimax, other

返回类型:string


📌Network.Cookie

Cookie 对象

EN
Cookie object

返回类型:object

属性必填标记类型描述原文
name✔️stringCookie 名称。
ENCookie name.
value✔️stringCookie值。
ENCookie value.
domain✔️stringCookie 域。
ENCookie domain.
path✔️stringCookie 路径。
ENCookie path.
expires✔️numberCookie的过期时间,以自UNIX纪元以来的秒数表示。如果未设置过期日期,则该值设为-1。对于无法在JSON中表示的值(±Inf),该值可以为null。
ENCookie expiration date as the number of seconds since the UNIX epoch. The value is set to -1 if the expiry date is not set. The value can be null for values that cannot be represented in JSON (±Inf).
size✔️integerCookie 大小。
ENCookie size.
httpOnly✔️boolean如果cookie是http-only,则为真。
ENTrue if cookie is http-only.
secure✔️boolean如果cookie是安全的,则为True。
ENTrue if cookie is secure.
session✔️boolean在会话 Cookie 的情况下为 True。
ENTrue in case of session cookie.
sameSiteCookieSameSiteCookie SameSite 类型。
ENCookie SameSite type.
priority✔️🧪CookiePriorityCookie Priority
ENCookie Priority
sourceScheme✔️🧪CookieSourceSchemeCookie 来源方案类型。
ENCookie source scheme type.
sourcePort✔️🧪integerCookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
ENCookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
partitionKey🧪CookiePartitionKeyCookie partition key.
ENCookie partition key.
partitionKeyOpaque🧪boolean如果cookie分区密钥不透明,则为True。
ENTrue if cookie partition key is opaque.

📌Network.CookieParam

Cookie 参数对象

EN
Cookie parameter object

返回类型:object

属性必填标记类型描述原文
name✔️stringCookie 名称。
ENCookie name.
value✔️stringCookie 值。
ENCookie value.
urlstring与cookie设置相关联的请求URI。此值可能影响所创建cookie的默认域名、路径、源端口和源方案值。
ENThe request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie.
domainstringCookie 域名。
ENCookie domain.
pathstringCookie 路径。
ENCookie path.
secureboolean如果 cookie 是安全的,则为 True。
ENTrue if cookie is secure.
httpOnlyboolean如果cookie是http-only,则为真。
ENTrue if cookie is http-only.
sameSiteCookieSameSiteCookie SameSite 类型。
ENCookie SameSite type.
expiresTimeSinceEpochCookie过期日期,如果未设置则为会话Cookie
ENCookie expiration date, session cookie if not set
priority🧪CookiePriorityCookie Priority.
ENCookie Priority.
sourceScheme🧪CookieSourceSchemeCookie 来源方案类型。
ENCookie source scheme type.
sourcePort🧪integerCookie 源端口。有效值为 {-1, [1, 65535]},-1 表示未指定端口。未指定的端口值允许协议客户端模拟该端口的旧版 Cookie 作用域。这是一个临时功能,未来将被移除。
ENCookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
partitionKey🧪CookiePartitionKeyCookie partition key。如果未设置,cookie 将被设置为未分区状态。
ENCookie partition key. If not set, the cookie will be set as not partitioned.

📌Network.CookieSameSite

表示Cookie的'SameSite'状态:https://tools.ietf.org/html/draft-west-first-party-cookies
允许的值:Strict, Lax, None

EN
Represents the cookie's 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies
Allowed Values: Strict, Lax, None

返回类型:string


📌Network.CorsError

请求被阻止的原因。
允许的值:DisallowedByModeInvalidResponseWildcardOriginNotAllowedMissingAllowOriginHeaderMultipleAllowOriginValuesInvalidAllowOriginValueAllowOriginMismatchInvalidAllowCredentialsCorsDisabledSchemePreflightInvalidStatusPreflightDisallowedRedirectPreflightWildcardOriginNotAllowedPreflightMissingAllowOriginHeaderPreflightMultipleAllowOriginValuesPreflightInvalidAllowOriginValuePreflightAllowOriginMismatchPreflightInvalidAllowCredentialsPreflightMissingAllowExternalPreflightInvalidAllowExternalInvalidAllowMethodsPreflightResponseInvalidAllowHeadersPreflightResponseMethodDisallowedByPreflightResponseHeaderDisallowedByPreflightResponseRedirectContainsCredentialsInsecureLocalNetworkInvalidLocalNetworkAccessNoCorsRedirectModeNotFollowLocalNetworkAccessPermissionDenied

EN
The reason why request was blocked.
Allowed Values: DisallowedByMode, InvalidResponse, WildcardOriginNotAllowed, MissingAllowOriginHeader, MultipleAllowOriginValues, InvalidAllowOriginValue, AllowOriginMismatch, InvalidAllowCredentials, CorsDisabledScheme, PreflightInvalidStatus, PreflightDisallowedRedirect, PreflightWildcardOriginNotAllowed, PreflightMissingAllowOriginHeader, PreflightMultipleAllowOriginValues, PreflightInvalidAllowOriginValue, PreflightAllowOriginMismatch, PreflightInvalidAllowCredentials, PreflightMissingAllowExternal, PreflightInvalidAllowExternal, InvalidAllowMethodsPreflightResponse, InvalidAllowHeadersPreflightResponse, MethodDisallowedByPreflightResponse, HeaderDisallowedByPreflightResponse, RedirectContainsCredentials, InsecureLocalNetwork, InvalidLocalNetworkAccess, NoCorsRedirectModeNotFollow, LocalNetworkAccessPermissionDenied

返回类型:string


📌Network.CorsErrorStatus

返回类型:object

属性必填标记类型描述原文
corsError✔️CorsError
failedParameter✔️string

📌Network.ErrorReason

网络层级获取失败原因。
允许值:FailedAbortedTimedOutAccessDeniedConnectionClosedConnectionResetConnectionRefusedConnectionAbortedConnectionFailedNameNotResolvedInternetDisconnectedAddressUnreachableBlockedByClientBlockedByResponse

EN
Network level fetch failure reason.
Allowed Values: Failed, Aborted, TimedOut, AccessDenied, ConnectionClosed, ConnectionReset, ConnectionRefused, ConnectionAborted, ConnectionFailed, NameNotResolved, InternetDisconnected, AddressUnreachable, BlockedByClient, BlockedByResponse

返回类型:string


📌Network.Headers

请求/响应头作为JSON对象的键/值。

EN
Request / response headers as keys / values of JSON object.

返回类型:object


📌Network.Initiator

关于请求发起者的信息。

EN
Information about the request initiator.

返回类型:object

属性必填标记类型描述原文
type✔️string此发起者的类型。
允许的值:parserscriptpreloadSignedExchangepreflightFedCMother
ENType of this initiator.
Allowed Values: parser, script, preload, SignedExchange, preflight, FedCM, other
stackRuntime.StackTrace发起者JavaScript堆栈跟踪,仅针对脚本设置。需要启用调试器域。
ENInitiator JavaScript stack trace, set for Script only. Requires the Debugger domain to be enabled.
urlstring发起方URL,针对Parser类型或Script类型(当脚本导入模块时)或SignedExchange类型设置。
ENInitiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type.
lineNumbernumber起始行号,针对Parser类型或Script类型(当脚本正在导入模块时)设置(从0开始计数)。
ENInitiator line number, set for Parser type or for Script type (when script is importing module) (0-based).
columnNumbernumber起始列号,为解析器类型或脚本类型(当脚本导入模块时)设置(从0开始计数)。
ENInitiator column number, set for Parser type or for Script type (when script is importing module) (0-based).
requestIdRequestId设置是否由另一个请求触发了此请求(例如预检请求)。
ENSet if another request triggered this request (e.g. preflight).

📌Network.InterceptionId

唯一的拦截请求标识符。

EN
Unique intercepted request identifier.

返回类型:string


📌Network.LoaderId

唯一的加载器标识符。

EN
Unique loader identifier.

返回类型:string


📌Network.MonotonicTime

自过去某个任意点起单调递增的时间,以秒为单位。

EN
Monotonically increasing time in seconds since an arbitrary point in the past.

返回类型:number


📌Network.PostDataEntry

HTTP请求的Post数据条目

EN
Post data entry for HTTP request

返回类型:object

属性必填标记类型描述原文
bytesstring

📌Network.Request

HTTP 请求数据。

EN
HTTP request data.

返回类型:object

属性必填标记类型描述原文
url✔️string请求URL(不含片段)。
ENRequest URL (without fragment).
urlFragmentstring所请求URL的片段,如果存在,则从哈希符号(#)开始的部分。
ENFragment of the requested URL starting with hash, if present.
method✔️stringHTTP请求方法。
ENHTTP request method.
headers✔️HeadersHTTP请求头。
ENHTTP request headers.
postData❌️stringHTTP POST 请求数据。请改用 postDataEntries。
ENHTTP POST request data. Use postDataEntries instead.
hasPostDataboolean当请求包含POST数据时为真。请注意,即使此标志为真,当数据过长时,postData仍可能被省略。
ENTrue when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.
postDataEntries🧪array[PostDataEntry]请求体元素(post数据被分解为各个条目)。
ENRequest body elements (post data broken into individual entries).
mixedContentTypeSecurity.MixedContentType请求的混合内容类型。
ENThe mixed content type of the request.
initialPriority✔️ResourcePriority资源请求在发送时的优先级。
ENPriority of the resource request at the time request is sent.
referrerPolicy✔️string请求的引用策略,定义于https://www.w3.org/TR/referrer-policy/
允许的值:unsafe-url, no-referrer-when-downgrade, no-referrer, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin
ENThe referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
Allowed Values: unsafe-url, no-referrer-when-downgrade, no-referrer, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin
isLinkPreloadboolean是否通过链接预加载加载。
ENWhether is loaded via link preload.
trustTokenParams🧪TrustTokenParams当使用TrustToken API时,为请求设置。包含后端所理解的开发者传递的参数(例如通过"fetch")。
ENSet for requests when the TrustToken API is used. Contains the parameters passed by the developer (e.g. via "fetch") as understood by the backend.
isSameSite🧪boolean如果此资源请求被视为与主框架对应的请求属于“同一站点”,则为真。
ENTrue if this resource request is considered to be the 'same site' as the request corresponding to the main frame.
isAdRelated🧪boolean当资源请求与广告相关时为真。
ENTrue when the resource request is ad-related.

📌Network.RequestId

唯一的网络请求标识符。请注意,这并不标识作为网络请求一部分的各个HTTP请求。

EN
Unique network request identifier. Note that this does not identify individual HTTP requests that are part of a network request.

返回类型:string


📌Network.ResourcePriority

资源请求的加载优先级。
允许的值:VeryLowLowMediumHighVeryHigh

EN
Loading priority of a resource request.
Allowed Values: VeryLow, Low, Medium, High, VeryHigh

返回类型:string


📌Network.ResourceTiming

请求的时序信息。

EN
Timing information for the request.

返回类型:object

属性必填标记类型描述原文
requestTime✔️numberTiming中的requestTime是一个以秒为基准的时间点,而其他数字则是相对于这个requestTime的毫秒级时间刻度。
ENTiming's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime.
proxyStart✔️number开始解析代理。
ENStarted resolving proxy.
proxyEnd✔️number完成代理解析。
ENFinished resolving proxy.
dnsStart✔️number开始DNS地址解析。
ENStarted DNS address resolve.
dnsEnd✔️number已完成DNS地址解析。
ENFinished DNS address resolve.
connectStart✔️number开始连接到远程主机。
ENStarted connecting to the remote host.
connectEnd✔️number已连接到远程主机。
ENConnected to the remote host.
sslStart✔️number开始SSL握手。
ENStarted SSL handshake.
sslEnd✔️number完成SSL握手。
ENFinished SSL handshake.
workerStart✔️🧪number开始运行 ServiceWorker。
ENStarted running ServiceWorker.
workerReady✔️🧪number完成启动ServiceWorker。
ENFinished Starting ServiceWorker.
workerFetchStart✔️🧪number开始获取事件。
ENStarted fetch event.
workerRespondWithSettled✔️🧪number已处理 fetch 事件的 respondWith Promise。
ENSettled fetch event respondWith promise.
workerRouterEvaluationStart🧪number已启动ServiceWorker静态路由源评估。
ENStarted ServiceWorker static routing source evaluation.
workerCacheLookupStart🧪number在源文件被评估为cache时,启动了缓存查找。
ENStarted cache lookup when the source was evaluated to cache.
sendStart✔️number已开始发送请求。
ENStarted sending request.
sendEnd✔️number请求发送完成。
ENFinished sending request.
pushStart✔️🧪number服务器开始推送请求的时间。
ENTime the server started pushing request.
pushEnd✔️🧪number服务器完成推送请求的时间。
ENTime the server finished pushing request.
receiveHeadersStart✔️🧪number开始接收响应头。
ENStarted receiving response headers.
receiveHeadersEnd✔️number已完成接收响应标头。
ENFinished receiving response headers.

📌Network.ResourceType

资源类型,由渲染引擎所识别。
允许的值:DocumentStylesheetImageMediaFontScriptTextTrackXHRFetchPrefetchEventSourceWebSocketManifestSignedExchangePingCSPViolationReportPreflightFedCMOther

EN
Resource type as it was perceived by the rendering engine.
Allowed Values: Document, Stylesheet, Image, Media, Font, Script, TextTrack, XHR, Fetch, Prefetch, EventSource, WebSocket, Manifest, SignedExchange, Ping, CSPViolationReport, Preflight, FedCM, Other

返回类型:string


📌Network.Response

HTTP响应数据。

EN
HTTP response data.

返回类型:object

属性必填标记类型描述原文
url✔️string响应URL。在发生重定向的情况下,此URL可能与CachedResource.url不同。
ENResponse URL. This URL can be different from CachedResource.url in case of redirect.
status✔️integerHTTP响应状态码。
ENHTTP response status code.
statusText✔️stringHTTP 响应状态文本。
ENHTTP response status text.
headers✔️HeadersHTTP响应头。
ENHTTP response headers.
headersText❌️stringHTTP响应头文本。此内容已被Network.responseReceivedExtraInfo中的头部信息所取代。
ENHTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo.
mimeType✔️string资源MIME类型,由浏览器确定。
ENResource mimeType as determined by the browser.
charset✔️string资源字符集,由浏览器确定(如果适用)。
ENResource charset as determined by the browser (if applicable).
requestHeadersHeaders经过网络实际传输的精炼HTTP请求头。
ENRefined HTTP request headers that were actually transmitted over the network.
requestHeadersText❌️stringHTTP请求头文本。这已被Network.requestWillBeSentExtraInfo中的头部信息所取代。
ENHTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo.
connectionReused✔️boolean指定物理连接是否实际为此请求被重用。
ENSpecifies whether physical connection was actually reused for this request.
connectionId✔️number实际用于此请求的物理连接ID。
ENPhysical connection id that was actually used for this request.
remoteIPAddressstring远程IP地址。
ENRemote IP address.
remotePortinteger远程端口。
ENRemote port.
fromDiskCacheboolean指定该请求是从磁盘缓存中提供的。
ENSpecifies that the request was served from the disk cache.
fromServiceWorkerboolean指定请求是从ServiceWorker提供的。
ENSpecifies that the request was served from the ServiceWorker.
fromPrefetchCacheboolean指定该请求是从预取缓存中提供的。
ENSpecifies that the request was served from the prefetch cache.
fromEarlyHintsboolean指定请求是从预取缓存中提供的。
ENSpecifies that the request was served from the prefetch cache.
serviceWorkerRouterInfo🧪ServiceWorkerRouterInfo关于ServiceWorker静态路由器API使用方式的信息。如果此字段与matchedSourceType字段同时设置,则表示找到匹配规则。如果此字段单独设置而未包含matchedSource字段,则表示未找到匹配规则。否则,表示未使用该API。
ENInformation about how ServiceWorker Static Router API was used. If this field is set with matchedSourceType field, a matching rule is found. If this field is set without matchedSource, no matching rule is found. Otherwise, the API is not used.
encodedDataLength✔️number截至目前为止,此请求已接收的总字节数。
ENTotal number of bytes received for this request so far.
timingResourceTiming给定请求的时间信息。
ENTiming information for the given request.
serviceWorkerResponseSourceServiceWorkerResponseSourceServiceWorker 响应的响应来源。
ENResponse source of response from ServiceWorker.
responseTimeTimeSinceEpoch返回响应生成的时间。
ENThe time at which the returned response was generated.
cacheStorageCacheNamestring缓存存储缓存名称。
ENCache Storage Cache Name.
protocolstring用于获取此请求的协议。
ENProtocol used to fetch this request.
alternateProtocolUsage🧪AlternateProtocolUsageChrome为何采用特定传输协议来实现HTTP语义。
ENThe reason why Chrome uses a specific transport protocol for HTTP semantics.
securityState✔️Security.SecurityState请求资源的安全状态。
ENSecurity state of the request resource.
securityDetailsSecurityDetails请求的安全详情。
ENSecurity details for the request.

📌Network.SecurityDetails

有关请求的安全详细信息。

EN
Security details about a request.

返回类型:object

属性必填标记类型描述原文
protocol✔️string协议名称(例如 "TLS 1.2" 或 "QUIC")。
ENProtocol name (e.g. "TLS 1.2" or "QUIC").
keyExchange✔️string连接所使用的密钥交换方式,如果不适用则为空字符串。
ENKey Exchange used by the connection, or the empty string if not applicable.
keyExchangeGroupstring连接所使用的(EC)DH组(如适用)。
EN(EC)DH group used by the connection, if applicable.
cipher✔️stringCipher name.
ENCipher name.
macstringTLS MAC。请注意,AEAD 密码没有单独的 MAC。
ENTLS MAC. Note that AEAD ciphers do not have separate MACs.
certificateId✔️Security.CertificateId证书ID值。
ENCertificate ID value.
subjectName✔️string证书主题名称。
ENCertificate subject name.
sanList✔️array[string]主题备用名称(SAN)DNS名称和IP地址。
ENSubject Alternative Name (SAN) DNS names and IP addresses.
issuer✔️string颁发 CA 的名称。
ENName of the issuing CA.
validFrom✔️TimeSinceEpoch证书有效起始日期。
ENCertificate valid from date.
validTo✔️TimeSinceEpoch证书有效期至(过期日期)
ENCertificate valid to (expiration) date
signedCertificateTimestampList✔️array[SignedCertificateTimestamp]已签名证书时间戳(SCTs)列表。
ENList of signed certificate timestamps (SCTs).
certificateTransparencyCompliance✔️CertificateTransparencyCompliance该请求是否符合证书透明度政策
ENWhether the request complied with Certificate Transparency policy
serverSignatureAlgorithminteger服务器在TLS服务器签名中使用的签名算法,以TLS SignatureScheme代码点表示。如果不适用或未知,则省略。
ENThe signature algorithm used by the server in the TLS server signature, represented as a TLS SignatureScheme code point. Omitted if not applicable or not known.
encryptedClientHello✔️boolean连接是否使用了加密的客户端问候(Encrypted ClientHello)
ENWhether the connection used Encrypted ClientHello

📌Network.ServiceWorkerResponseSource

服务工作者响应的来源。
允许的值:cache-storagehttp-cachefallback-codenetwork

EN
Source of serviceworker response.
Allowed Values: cache-storage, http-cache, fallback-code, network

返回类型:string


📌Network.ServiceWorkerRouterSource

服务工作者路由器的来源。
允许的值:networkcachefetch-eventrace-network-and-fetch-handlerrace-network-and-cache

EN
Source of service worker router.
Allowed Values: network, cache, fetch-event, race-network-and-fetch-handler, race-network-and-cache

返回类型:string


📌Network.SignedCertificateTimestamp

已签名证书时间戳(SCT)的详细信息。

EN
Details of a signed certificate timestamp (SCT).

返回类型:object

属性必填标记类型描述原文
status✔️string验证状态。
ENValidation status.
origin✔️stringTranslate the following text without modifying the content inside '' and ``.
ENOrigin.
logDescription✔️string日志名称 / 描述。
ENLog name / description.
logId✔️stringLog ID.
ENLog ID.
timestamp✔️number颁发日期。与TimeSinceEpoch不同,这里包含的是自UTC时间1970年1月1日以来的毫秒数,而非秒数。
ENIssuance date. Unlike TimeSinceEpoch, this contains the number of milliseconds since January 1, 1970, UTC, not the number of seconds.
hashAlgorithm✔️string哈希算法。
ENHash algorithm.
signatureAlgorithm✔️string签名算法。
ENSignature algorithm.
signatureData✔️string签名数据。
ENSignature data.

📌Network.TimeSinceEpoch

自1970年1月1日起计算的UTC时间,单位为秒。

EN
UTC time in seconds, counted from January 1, 1970.

返回类型:number


📌Network.WebSocketFrame

WebSocket消息数据。这代表一个完整的WebSocket消息,而不仅仅是名称所暗示的碎片化帧。

EN
WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.

返回类型:object

属性必填标记类型描述原文
opcode✔️numberWebSocket消息操作码。
ENWebSocket message opcode.
mask✔️booleanWebSocket消息掩码。
ENWebSocket message mask.
payloadData✔️stringWebSocket消息负载数据。如果操作码为1,则为文本消息,此时payloadData是UTF-8字符串。若操作码非1,则payloadData是表示二进制数据的base64编码字符串。
ENWebSocket message payload data. If the opcode is 1, this is a text message and payloadData is a UTF-8 string. If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data.

📌Network.WebSocketRequest

WebSocket 请求数据。

EN
WebSocket request data.

返回类型:object

属性必填标记类型描述原文
headers✔️HeadersHTTP请求头。
ENHTTP request headers.

📌Network.WebSocketResponse

WebSocket响应数据。

EN
WebSocket response data.

返回类型:object

属性必填标记类型描述原文
status✔️integerHTTP响应状态码。
ENHTTP response status code.
statusText✔️stringHTTP响应状态文本。
ENHTTP response status text.
headers✔️HeadersHTTP 响应头。
ENHTTP response headers.
headersTextstringHTTP响应头文本。
ENHTTP response headers text.
requestHeadersHeadersHTTP请求头。
ENHTTP request headers.
requestHeadersTextstringHTTP请求头文本。
ENHTTP request headers text.

📌Network.AlternateProtocolUsage🧪

Chrome采用特定传输协议实现HTTP语义的原因。
允许的取值:alternativeJobWonWithoutRace, alternativeJobWonRace, mainJobWonRace, mappingMissing, broken, dnsAlpnH3JobWonWithoutRace, dnsAlpnH3JobWonRace, unspecifiedReason

EN
The reason why Chrome uses a specific transport protocol for HTTP semantics.
Allowed Values: alternativeJobWonWithoutRace, alternativeJobWonRace, mainJobWonRace, mappingMissing, broken, dnsAlpnH3JobWonWithoutRace, dnsAlpnH3JobWonRace, unspecifiedReason

返回类型:string


📌Network.AssociatedCookie🧪

与请求关联的Cookie,可能随请求发送也可能不发送。包含Cookie本身以及被阻止或豁免的原因。

EN
A cookie associated with the request which may or may not be sent with it. Includes the cookies itself and reasons for blocking or exemption.

返回类型:object

属性必填标记类型描述原文
cookie✔️Cookie表示未发送的cookie的cookie对象。
ENThe cookie object representing the cookie which was not sent.
blockedReasons✔️array[CookieBlockedReason]Cookie被阻止的原因。如果为空,则表示Cookie已被包含。
ENThe reason(s) the cookie was blocked. If empty means the cookie is included.
exemptionReasonCookieExemptionReasonCookie本应被第三方Cookie限制(3PCD)阻止却被豁免的原因。一个Cookie最多只能有一个豁免原因。
ENThe reason the cookie should have been blocked by 3PCD but is exempted. A cookie could only have at most one exemption reason.

📌Network.AuthChallenge🧪

HTTP状态码401或407的授权质询。

EN
Authorization challenge for HTTP status code 401 or 407.

返回类型:object

属性必填标记类型描述原文
sourcestring认证挑战的来源。
允许的值:ServerProxy
ENSource of the authentication challenge.
Allowed Values: Server, Proxy
origin✔️string挑战者的来源。
ENOrigin of the challenger.
scheme✔️string所使用的身份验证方案,例如basic或digest
ENThe authentication scheme used, such as basic or digest
realm✔️string挑战的领域。可能为空。
ENThe realm of the challenge. May be empty.

📌Network.AuthChallengeResponse🧪

对认证挑战的响应。

EN
Response to an AuthChallenge.

返回类型:object

属性必填标记类型描述原文
response✔️string对于授权质询的响应决策。默认意味着遵循网络堆栈的默认行为,这很可能是取消身份验证或显示弹出对话框。
允许值:DefaultCancelAuthProvideCredentials
ENThe decision on what to do in response to the authorization challenge. Default means deferring to the default behavior of the net stack, which will likely either the Cancel authentication or display a popup dialog box.
Allowed Values: Default, CancelAuth, ProvideCredentials
usernamestring用户名,可能为空。仅在响应为''ProvideCredentials''时应设置。
ENThe username to provide, possibly empty. Should only be set if response is ProvideCredentials.
passwordstring提供的密码,可能为空。仅在响应为 ProvideCredentials 时应设置。
ENThe password to provide, possibly empty. Should only be set if response is ProvideCredentials.

📌Network.BlockedSetCookieWithReason🧪

一个未从响应中存储的cookie,其对应原因为:

EN
A cookie which was not stored from a response with the corresponding reason.

返回类型:object

属性必填标记类型描述原文
blockedReasons✔️array[SetCookieBlockedReason]此Cookie被阻止的原因。
ENThe reason(s) this cookie was blocked.
cookieLine✔️string表示此单个 cookie 的字符串,如同在标头中出现的那样。这不是包含多个 cookie 的完整 "cookie" 或 "set-cookie" 标头。
ENThe string representing this individual cookie as it would appear in the header. This is not the entire "cookie" or "set-cookie" header which could have multiple cookies.
cookieCookie代表未被存储的cookie的cookie对象。它是可选的,因为有时完整的cookie信息不可用,例如在解析错误的情况下。
ENThe cookie object which represents the cookie which was not stored. It is optional because sometimes complete cookie information is not available, such as in the case of parsing errors.

📌Network.BlockPattern🧪

返回类型:object

属性必填标记类型描述原文
urlPattern✔️string要匹配的URL模式。模式使用URLPattern构造器字符串语法(https://urlpattern.spec.whatwg.org/)且必须是绝对路径。示例:*://*:*/*.css
ENURL pattern to match. Patterns use the URLPattern constructor string syntax (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: *://*:*/*.css.
block✔️boolean是否阻止该模式。如果为 false,即使匹配到后续的 BlockPattern,也不会阻止匹配的请求。
ENWhether or not to block the pattern. If false, a matching request will not be blocked even if it matches a later BlockPattern.

📌Network.ChallengeEventDetails🧪

会话事件详情特定于挑战。

EN
Session event details specific to challenges.

返回类型:object

属性必填标记类型描述原文
challengeResult✔️string挑战的结果。
允许的值:SuccessNoSessionIdNoSessionMatchCantSetBoundCookie
ENThe result of a challenge.
Allowed Values: Success, NoSessionId, NoSessionMatch, CantSetBoundCookie
challenge✔️string挑战已设定。
ENThe challenge set.

📌Network.ClientSecurityState🧪

返回类型:object

属性必填标记类型描述原文
initiatorIsSecureContext✔️boolean
initiatorIPAddressSpace✔️IPAddressSpace
localNetworkAccessRequestPolicy✔️LocalNetworkAccessRequestPolicy

📌Network.ConnectTiming🧪

返回类型:object

属性必填标记类型描述原文
requestTime✔️numberTiming的requestTime是一个以秒为单位的基准时间,而其他数字则是相对于此requestTime的以毫秒为单位的刻度。这与同一请求(但不包括重定向请求)的ResourceTiming的requestTime相匹配。
ENTiming's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime. Matches ResourceTiming's requestTime for the same request (but not for redirected requests).

📌Network.ContentEncoding🧪

后端支持的内容编码列表。
允许的值:deflategzipbrzstd

EN
List of content encodings supported by the backend.
Allowed Values: deflate, gzip, br, zstd

返回类型:string


📌Network.ContentSecurityPolicySource🧪

允许的值:HTTPMeta

EN
Allowed Values: HTTP, Meta

返回类型:string


📌Network.ContentSecurityPolicyStatus🧪

返回类型:object

属性必填标记类型描述原文
effectiveDirectives✔️string
isEnforced✔️boolean
source✔️ContentSecurityPolicySource

📌Network.CookieBlockedReason🧪

Cookie 可能未随请求发送的原因类型。
允许值:SecureOnlyNotOnPathDomainMismatchSameSiteStrictSameSiteLaxSameSiteUnspecifiedTreatedAsLaxSameSiteNoneInsecureUserPreferencesThirdPartyPhaseoutThirdPartyBlockedInFirstPartySetUnknownErrorSchemefulSameSiteStrictSchemefulSameSiteLaxSchemefulSameSiteUnspecifiedTreatedAsLaxNameValuePairExceedsMaxSizePortMismatchSchemeMismatchAnonymousContext

EN
Types of reasons why a cookie may not be sent with a request.
Allowed Values: SecureOnly, NotOnPath, DomainMismatch, SameSiteStrict, SameSiteLax, SameSiteUnspecifiedTreatedAsLax, SameSiteNoneInsecure, UserPreferences, ThirdPartyPhaseout, ThirdPartyBlockedInFirstPartySet, UnknownError, SchemefulSameSiteStrict, SchemefulSameSiteLax, SchemefulSameSiteUnspecifiedTreatedAsLax, NameValuePairExceedsMaxSize, PortMismatch, SchemeMismatch, AnonymousContext

返回类型:string


📌Network.CookieExemptionReason🧪

Cookie本应被第三方Cookie拦截(3PCD)阻止但被请求豁免的原因类型。
允许值:NoneUserSettingTPCDMetadataTPCDDeprecationTrialTopLevelTPCDDeprecationTrialTPCDHeuristicsEnterprisePolicyStorageAccessTopLevelStorageAccessSchemeSameSiteNoneCookiesInSandbox

EN
Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.
Allowed Values: None, UserSetting, TPCDMetadata, TPCDDeprecationTrial, TopLevelTPCDDeprecationTrial, TPCDHeuristics, EnterprisePolicy, StorageAccess, TopLevelStorageAccess, Scheme, SameSiteNoneCookiesInSandbox

返回类型:string


📌Network.CookiePartitionKey🧪

cookiePartitionKey 对象 由 net/cookies/cookie_partition_key.h 中包含的 cookiePartitionKey 类创建的键的组成部分的表示。

EN
cookiePartitionKey object The representation of the components of the key that are created by the cookiePartitionKey class contained in net/cookies/cookie_partition_key.h.

返回类型:object

属性必填标记类型描述原文
topLevelSite✔️string浏览器在向设置cookie的端点发起请求之初,正在访问的顶级URL的站点。
ENThe site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie.
hasCrossSiteAncestor✔️boolean指示该cookie是否有任何祖先相对于顶级站点是跨站点的。
ENIndicates if the cookie has any ancestors that are cross-site to the topLevelSite.

📌Network.CookiePriority🧪

表示Cookie的'优先级'状态:https://tools.ietf.org/html/draft-west-cookie-priority-00
允许的取值:Low, Medium, High

EN
Represents the cookie's 'Priority' status: https://tools.ietf.org/html/draft-west-cookie-priority-00
Allowed Values: Low, Medium, High

返回类型:string


📌Network.CookieSourceScheme🧪

表示最初设置Cookie的原始来源方案。"Unset"值允许协议客户端模拟该方案的旧版Cookie作用域。这是一项临时功能,未来将被移除。
允许值:UnsetNonSecureSecure

EN
Represents the source scheme of the origin that originally set the cookie. A value of "Unset" allows protocol clients to emulate legacy cookie scope for the scheme. This is a temporary ability and it will be removed in the future.
Allowed Values: Unset, NonSecure, Secure

返回类型:string


📌Network.CreationEventDetails🧪

会话事件详情特定于创建。

EN
Session event details specific to creation.

返回类型:object

属性必填标记类型描述原文
fetchResult✔️DeviceBoundSessionFetchResult获取尝试的结果。
ENThe result of the fetch attempt.
newSessionDeviceBoundSession如果存在新创建的会话,则为该会话。所有成功的创建事件都会填充此字段。
ENThe session if there was a newly created session. This is populated for all successful creation events.
failedRequestDeviceBoundSessionFailedRequest有关失败的设备绑定会话网络请求的详细信息(如果存在)。
ENDetails about a failed device bound session network request if there was one.

📌Network.CrossOriginEmbedderPolicyStatus🧪

返回类型:object

属性必填标记类型描述原文
value✔️CrossOriginEmbedderPolicyValue
reportOnlyValue✔️CrossOriginEmbedderPolicyValue
reportingEndpointstring
reportOnlyReportingEndpointstring

📌Network.CrossOriginEmbedderPolicyValue🧪

允许的值:NoneCredentiallessRequireCorp

EN
Allowed Values: None, Credentialless, RequireCorp

返回类型:string


📌Network.CrossOriginOpenerPolicyStatus🧪

返回类型:object

属性必填标记类型描述原文
value✔️CrossOriginOpenerPolicyValue
reportOnlyValue✔️CrossOriginOpenerPolicyValue
reportingEndpointstring
reportOnlyReportingEndpointstring

📌Network.CrossOriginOpenerPolicyValue🧪

允许的值:SameOriginSameOriginAllowPopupsRestrictPropertiesUnsafeNoneSameOriginPlusCoepRestrictPropertiesPlusCoepNoopenerAllowPopups

EN
Allowed Values: SameOrigin, SameOriginAllowPopups, RestrictProperties, UnsafeNone, SameOriginPlusCoep, RestrictPropertiesPlusCoep, NoopenerAllowPopups

返回类型:string


📌Network.DeviceBoundSession🧪

一个设备绑定的会话。

EN
A device bound session.

返回类型:object

属性必填标记类型描述原文
key✔️DeviceBoundSessionKey会话的站点和会话ID。
ENThe site and session ID of the session.
refreshUrl✔️string查看关于 net::device_bound_sessions::Session::refresh_url_ 的评论。
ENSee comments on net::device_bound_sessions::Session::refresh_url_.
inclusionRules✔️DeviceBoundSessionInclusionRules请参阅关于net::device_bound_sessions::Session::inclusion_rules_的注释。
ENSee comments on net::device_bound_sessions::Session::inclusion_rules_.
cookieCravings✔️array[DeviceBoundSessionCookieCraving]请参阅 net::device_bound_sessions::Session::cookie_cravings_ 上的注释。
ENSee comments on net::device_bound_sessions::Session::cookie_cravings_.
expiryDate✔️Network.TimeSinceEpoch请参阅关于 net::device_bound_sessions::Session::expiry_date_ 的注释。
ENSee comments on net::device_bound_sessions::Session::expiry_date_.
cachedChallengestring请参阅关于net::device_bound_sessions::Session::cached_challenge__的注释。
ENSee comments on net::device_bound_sessions::Session::cached_challenge__.
allowedRefreshInitiators✔️array[string]请参阅 net::device_bound_sessions::Session::allowed_refresh_initiators_ 上的注释。
ENSee comments on net::device_bound_sessions::Session::allowed_refresh_initiators_.

📌Network.DeviceBoundSessionCookieCraving🧪

设备绑定会话的cookie渴望。

EN
A device bound session's cookie craving.

返回类型:object

属性必填标记类型描述原文
name✔️string渴望的名称。
ENThe name of the craving.
domain✔️string渴望的领域。
ENThe domain of the craving.
path✔️string渴望之路。
ENThe path of the craving.
secure✔️booleancraving 属性的 Secure 属性。
ENThe Secure attribute of the craving attributes.
httpOnly✔️booleanHttpOnly 属性的渴望属性。
ENThe HttpOnly attribute of the craving attributes.
sameSiteCookieSameSiteSameSite属性属于cookie属性。
ENThe SameSite attribute of the craving attributes.

📌Network.DeviceBoundSessionEventId🧪

设备绑定会话事件的唯一标识符。

EN
A unique identifier for a device bound session event.

返回类型:string


📌Network.DeviceBoundSessionFailedRequest🧪

关于一个失败的设备绑定会话网络请求的详细信息。

EN
Details about a failed device bound session network request.

返回类型:object

属性必填标记类型描述原文
requestUrl✔️string失败的请求URL。
ENThe failed request URL.
netErrorstring如果响应状态不是OK,则返回响应的网络错误。
ENThe net error of the response if it was not OK.
responseErrorinteger如果网络错误为OK且响应代码不是200时的响应代码。
ENThe response code if the net error was OK and the response code was not 200.
responseErrorBodystring如果网络错误为OK,响应代码不是200,且响应体不为空,则返回响应体。
ENThe body of the response if the net error was OK, the response code was not 200, and the response body was not empty.

📌Network.DeviceBoundSessionFetchResult🧪

设备绑定会话创建或刷新的获取结果。
允许的值:SuccessKeyErrorSigningErrorServerRequestedTerminationInvalidSessionIdInvalidChallengeTooManyChallengesInvalidFetcherUrlInvalidRefreshUrlTransientHttpErrorScopeOriginSameSiteMismatchRefreshUrlSameSiteMismatchMismatchedSessionIdMissingScopeNoCredentialsSubdomainRegistrationWellKnownUnavailableSubdomainRegistrationUnauthorizedSubdomainRegistrationWellKnownMalformedSessionProviderWellKnownUnavailableRelyingPartyWellKnownUnavailableFederatedKeyThumbprintMismatchInvalidFederatedSessionUrlInvalidFederatedKeyTooManyRelyingOriginLabelsBoundCookieSetForbiddenNetErrorProxyErrorEmptySessionConfigInvalidCredentialsConfigInvalidCredentialsTypeInvalidCredentialsEmptyNameInvalidCredentialsCookiePersistentHttpErrorRegistrationAttemptedChallengeInvalidScopeOriginScopeOriginContainsPathRefreshInitiatorNotStringRefreshInitiatorInvalidHostPatternInvalidScopeSpecificationMissingScopeSpecificationTypeEmptyScopeSpecificationDomainEmptyScopeSpecificationPathInvalidScopeSpecificationTypeInvalidScopeIncludeSiteMissingScopeIncludeSiteFederatedNotAuthorizedByProviderFederatedNotAuthorizedByRelyingPartySessionProviderWellKnownMalformedSessionProviderWellKnownHasProviderOriginRelyingPartyWellKnownMalformedRelyingPartyWellKnownHasRelyingOriginsInvalidFederatedSessionProviderSessionMissingInvalidFederatedSessionWrongProviderOriginInvalidCredentialsCookieCreationTimeInvalidCredentialsCookieNameInvalidCredentialsCookieParsingInvalidCredentialsCookieUnpermittedAttributeInvalidCredentialsCookieInvalidDomainInvalidCredentialsCookiePrefixInvalidScopeRulePathInvalidScopeRuleHostPatternScopeRuleOriginScopedHostPatternMismatchScopeRuleSiteScopedHostPatternMismatchSigningQuotaExceededInvalidConfigJsonInvalidFederatedSessionProviderFailedToRestoreKeyFailedToUnwrapKeySessionDeletedDuringRefresh

EN
A fetch result for a device bound session creation or refresh.
Allowed Values: Success, KeyError, SigningError, ServerRequestedTermination, InvalidSessionId, InvalidChallenge, TooManyChallenges, InvalidFetcherUrl, InvalidRefreshUrl, TransientHttpError, ScopeOriginSameSiteMismatch, RefreshUrlSameSiteMismatch, MismatchedSessionId, MissingScope, NoCredentials, SubdomainRegistrationWellKnownUnavailable, SubdomainRegistrationUnauthorized, SubdomainRegistrationWellKnownMalformed, SessionProviderWellKnownUnavailable, RelyingPartyWellKnownUnavailable, FederatedKeyThumbprintMismatch, InvalidFederatedSessionUrl, InvalidFederatedKey, TooManyRelyingOriginLabels, BoundCookieSetForbidden, NetError, ProxyError, EmptySessionConfig, InvalidCredentialsConfig, InvalidCredentialsType, InvalidCredentialsEmptyName, InvalidCredentialsCookie, PersistentHttpError, RegistrationAttemptedChallenge, InvalidScopeOrigin, ScopeOriginContainsPath, RefreshInitiatorNotString, RefreshInitiatorInvalidHostPattern, InvalidScopeSpecification, MissingScopeSpecificationType, EmptyScopeSpecificationDomain, EmptyScopeSpecificationPath, InvalidScopeSpecificationType, InvalidScopeIncludeSite, MissingScopeIncludeSite, FederatedNotAuthorizedByProvider, FederatedNotAuthorizedByRelyingParty, SessionProviderWellKnownMalformed, SessionProviderWellKnownHasProviderOrigin, RelyingPartyWellKnownMalformed, RelyingPartyWellKnownHasRelyingOrigins, InvalidFederatedSessionProviderSessionMissing, InvalidFederatedSessionWrongProviderOrigin, InvalidCredentialsCookieCreationTime, InvalidCredentialsCookieName, InvalidCredentialsCookieParsing, InvalidCredentialsCookieUnpermittedAttribute, InvalidCredentialsCookieInvalidDomain, InvalidCredentialsCookiePrefix, InvalidScopeRulePath, InvalidScopeRuleHostPattern, ScopeRuleOriginScopedHostPatternMismatch, ScopeRuleSiteScopedHostPatternMismatch, SigningQuotaExceeded, InvalidConfigJson, InvalidFederatedSessionProviderFailedToRestoreKey, FailedToUnwrapKey, SessionDeletedDuringRefresh

返回类型:string


📌Network.DeviceBoundSessionInclusionRules🧪

设备绑定会话的包含规则。

EN
A device bound session's inclusion rules.

返回类型:object

属性必填标记类型描述原文
origin✔️string查看关于net::device_bound_sessions::SessionInclusionRules::origin_的评论。
ENSee comments on net::device_bound_sessions::SessionInclusionRules::origin_.
includeSite✔️boolean是否包含整个站点。有关更多详细信息,请参阅 net::device_bound_sessions::SessionInclusionRules::include_site_ 的注释;如果该值已填充,则此布尔值为 true。
ENWhether the whole site is included. See comments on net::device_bound_sessions::SessionInclusionRules::include_site_ for more details; this boolean is true if that value is populated.
urlRules✔️array[DeviceBoundSessionUrlRule]请参阅 net::device_bound_sessions::SessionInclusionRules::url_rules_ 上的注释。
ENSee comments on net::device_bound_sessions::SessionInclusionRules::url_rules_.

📌Network.DeviceBoundSessionKey🧪

设备绑定会话的唯一标识符。

EN
Unique identifier for a device bound session.

返回类型:object

属性必填标记类型描述原文
site✔️string该会话所设置的站点。
ENThe site the session is set up for.
id✔️string会话的id。
ENThe id of the session.

📌Network.DeviceBoundSessionUrlRule🧪

设备绑定会话的包含URL规则。

EN
A device bound session's inclusion URL rule.

返回类型:object

属性必填标记类型描述原文
ruleType✔️string请参阅关于 net::device_bound_sessions::SessionInclusionRules::UrlRule::rule_type 的注释。
允许的值:ExcludeInclude
ENSee comments on net::device_bound_sessions::SessionInclusionRules::UrlRule::rule_type.
Allowed Values: Exclude, Include
hostPattern✔️string请参阅关于 net::device_bound_sessions::SessionInclusionRules::UrlRule::host_pattern 的注释。
ENSee comments on net::device_bound_sessions::SessionInclusionRules::UrlRule::host_pattern.
pathPrefix✔️string请参阅关于net::device_bound_sessions::SessionInclusionRules::UrlRule::path_prefix的注释。
ENSee comments on net::device_bound_sessions::SessionInclusionRules::UrlRule::path_prefix.

📌Network.DeviceBoundSessionWithUsage🧪

在请求期间如何使用设备绑定会话。

EN
How a device bound session was used during a request.

返回类型:object

属性必填标记类型描述原文
sessionKey✔️DeviceBoundSessionKey会话的密钥。
ENThe key for the session.
usage✔️string会话的使用情况(或未使用情况)。
允许值:NotInScopeInScopeRefreshNotYetNeededInScopeRefreshNotAllowedProactiveRefreshNotPossibleProactiveRefreshAttemptedDeferred
ENHow the session was used (or not used).
Allowed Values: NotInScope, InScopeRefreshNotYetNeeded, InScopeRefreshNotAllowed, ProactiveRefreshNotPossible, ProactiveRefreshAttempted, Deferred

📌Network.DirectSocketDnsQueryType🧪

允许的值:ipv4ipv6

EN
Allowed Values: ipv4, ipv6

返回类型:string


📌Network.DirectTCPSocketOptions🧪

返回类型:object

属性必填标记类型描述原文
noDelay✔️booleanTCP_NODELAY 选项
ENTCP_NODELAY option
keepAliveDelaynumber预期为无符号整数。
ENExpected to be unsigned integer.
sendBufferSizenumber预期为无符号整数。
ENExpected to be unsigned integer.
receiveBufferSizenumber预期为无符号整数。
ENExpected to be unsigned integer.
dnsQueryTypeDirectSocketDnsQueryType

📌Network.DirectUDPMessage🧪

返回类型:object

属性必填标记类型描述原文
data✔️string
remoteAddrstringconnected mode 为 null。
ENNull for connected mode.
remotePortinteger对于连接模式为''null''。预期为无符号整数。
ENNull for connected mode. Expected to be unsigned integer.

📌Network.DirectUDPSocketOptions🧪

返回类型:object

属性必填标记类型描述原文
remoteAddrstring
remotePortinteger无符号 16 位整数。
ENUnsigned int 16.
localAddrstring
localPortinteger无符号 16 位整数。
ENUnsigned int 16.
dnsQueryTypeDirectSocketDnsQueryType
sendBufferSizenumber预期为无符号整数。
ENExpected to be unsigned integer.
receiveBufferSizenumber预期为无符号整数。
ENExpected to be unsigned integer.
multicastLoopbackboolean
multicastTimeToLiveinteger无符号整数 8。
ENUnsigned int 8.
multicastAllowAddressSharingboolean

📌Network.ExemptedSetCookieWithReason🧪

一个本应被第三方Cookie拦截(3PCD)阻止的Cookie,由于相应原因被豁免并从响应中存储。一个Cookie最多只能有一个豁免原因。

EN
A cookie should have been blocked by 3PCD but is exempted and stored from a response with the corresponding reason. A cookie could only have at most one exemption reason.

返回类型:object

属性必填标记类型描述原文
exemptionReason✔️CookieExemptionReasonCookie被豁免的原因。
ENThe reason the cookie was exempted.
cookieLine✔️string表示此单个Cookie在标头中显示的字符串。
ENThe string representing this individual cookie as it would appear in the header.
cookie✔️Cookie表示cookie的cookie对象。
ENThe cookie object representing the cookie.

📌Network.InterceptionStage🧪

拦截的阶段,用于开始拦截。请求将在发送前被拦截。响应将在接收后被拦截。
允许的值:RequestHeadersReceived

EN
Stages of the interception to begin intercepting. Request will intercept before the request is sent. Response will intercept after the response is received.
Allowed Values: Request, HeadersReceived

返回类型:string


📌Network.IPAddressSpace🧪

允许的值:LoopbackLocalPublicUnknown

EN
Allowed Values: Loopback, Local, Public, Unknown

返回类型:string


📌Network.LoadNetworkResourceOptions🧪

一个选项对象,可能在未来扩展以更好地支持CORS、CORB和流式传输。

EN
An options object that may be extended later to better support CORS, CORB and streaming.

返回类型:object

属性必填标记类型描述原文
disableCache✔️boolean
includeCredentials✔️boolean

📌Network.LoadNetworkResourcePageResult🧪

一个提供网络资源加载结果的对象。

EN
An object providing the result of a network resource load.

返回类型:object

属性必填标记类型描述原文
success✔️boolean
netErrornumber用于错误报告的可选值。
ENOptional values used for error reporting.
netErrorNamestring
httpStatusCodenumber
streamIO.StreamHandle如果成功,以下两个字段之一将保存结果。
ENIf successful, one of the following two fields holds the result.
headersNetwork.Headers响应头。
ENResponse headers.

📌Network.LocalNetworkAccessRequestPolicy🧪

允许的值:AllowBlockFromInsecureToMorePrivateWarnFromInsecureToMorePrivatePermissionBlockPermissionWarn

EN
Allowed Values: Allow, BlockFromInsecureToMorePrivate, WarnFromInsecureToMorePrivate, PermissionBlock, PermissionWarn

返回类型:string


📌Network.NetworkConditions🧪

返回类型:object

属性必填标记类型描述原文
urlPattern✔️string只有匹配的请求会受到这些条件的影响。模式使用URLPattern构造器字符串语法(https://urlpattern.spec.whatwg.org/)且必须是绝对路径。如果模式为空,则匹配所有请求(包括p2p连接)。
ENOnly matching requests will be affected by these conditions. Patterns use the URLPattern constructor string syntax (https://urlpattern.spec.whatwg.org/) and must be absolute. If the pattern is empty, all requests are matched (including p2p connections).
latency✔️number从请求发送到响应头接收的最小延迟(毫秒)。
ENMinimum latency from request sent to response headers received (ms).
downloadThroughput✔️number最大聚合下载吞吐量(字节/秒)。-1 表示禁用下载限流。
ENMaximal aggregated download throughput (bytes/sec). -1 disables download throttling.
uploadThroughput✔️number最大聚合上传吞吐量(字节/秒)。-1 表示禁用上传限流。
ENMaximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
connectionTypeConnectionType连接类型(如果已知)。
ENConnection type if known.
packetLossnumberWebRTC 数据包丢失率(百分比,0-100)。0 表示禁用数据包丢失模拟,100 表示丢弃所有数据包。
ENWebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets.
packetQueueLengthintegerWebRTC 数据包队列长度(数据包)。0 表示移除任何队列长度限制。
ENWebRTC packet queue length (packet). 0 removes any queue length limitations.
packetReorderingbooleanWebRTC packetReordering 功能。
ENWebRTC packetReordering feature.

📌Network.RefreshEventDetails🧪

特定于刷新的会话事件详情。

EN
Session event details specific to refresh.

返回类型:object

属性必填标记类型描述原文
refreshResult✔️string刷新操作的结果。
允许的值:RefreshedInitializedServiceUnreachableServerErrorRefreshQuotaExceededFatalErrorSigningQuotaExceeded
ENThe result of a refresh.
Allowed Values: Refreshed, InitializedService, Unreachable, ServerError, RefreshQuotaExceeded, FatalError, SigningQuotaExceeded
fetchResultDeviceBoundSessionFetchResult如果存在获取尝试,则显示其''结果''。
ENIf there was a fetch attempt, the result of that.
newSessionDeviceBoundSession会话显示是否创建了新会话。任何修改会话配置的刷新事件都会填充此信息。
ENThe session display if there was a newly created session. This is populated for any refresh event that modifies the session config.
wasFullyProactiveRefresh✔️boolean请参阅 net::device_bound_sessions::RefreshEventResult::was_fully_proactive_refresh 上的注释。
ENSee comments on net::device_bound_sessions::RefreshEventResult::was_fully_proactive_refresh.
failedRequestDeviceBoundSessionFailedRequest关于失败设备绑定会话网络请求的详细信息(如果存在)。
ENDetails about a failed device bound session network request if there was one.

📌Network.RenderBlockingBehavior🧪

资源请求的渲染阻塞行为。
允许的值:BlockingInBodyParserBlockingNonBlockingNonBlockingDynamicPotentiallyBlocking

EN
The render-blocking behavior of a resource request.
Allowed Values: Blocking, InBodyParserBlocking, NonBlocking, NonBlockingDynamic, PotentiallyBlocking

返回类型:string


📌Network.ReportId🧪

返回类型:string


📌Network.ReportingApiEndpoint🧪

返回类型:object

属性必填标记类型描述原文
url✔️string可交付报告的端点URL。
ENThe URL of the endpoint to which reports may be delivered.
groupName✔️string端点组的名称。
ENName of the endpoint group.

📌Network.ReportingApiReport🧪

一个代表由Reporting API生成的报告的对象。

EN
An object representing a report generated by the Reporting API.

返回类型:object

属性必填标记类型描述原文
id✔️ReportId
initiatorUrl✔️string触发报告的文档的URL。
ENThe URL of the document that triggered the report.
destination✔️string应使用以交付报告的目标端点组的名称。
ENThe name of the endpoint group that should be used to deliver the report.
type✔️string报告的类型(指定报告主体中包含的数据集合)。
ENThe type of the report (specifies the set of data that is contained in the report body).
timestamp✔️Network.TimeSinceEpoch报告生成时间。
ENWhen the report was generated.
depth✔️integer相关请求的上传深度是多少。
ENHow many uploads deep the related request was.
completedAttempts✔️integer截至目前为止的投递尝试次数,不包括当前正在进行的尝试。
ENThe number of delivery attempts made so far, not including an active attempt.
body✔️object
status✔️ReportStatus

📌Network.ReportStatus🧪

一个Reporting API报告的状态。
允许的取值:QueuedPendingMarkedForRemovalSuccess

EN
The status of a Reporting API report.
Allowed Values: Queued, Pending, MarkedForRemoval, Success

返回类型:string


📌Network.RequestPattern🧪

拦截请求模式。

EN
Request pattern for interception.

返回类型:object

属性必填标记类型描述原文
urlPatternstring允许使用通配符('*' 表示零个或多个,'?' 表示恰好一个)。转义字符为反斜杠。省略时等同于 "*"
ENWildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is backslash. Omitting is equivalent to "*".
resourceTypeResourceType如果设置,只有匹配资源类型的请求才会被拦截。
ENIf set, only requests for matching resource types will be intercepted.
interceptionStageInterceptionStage开始拦截请求的阶段。默认为Request。
ENStage at which to begin intercepting requests. Default is Request.

📌Network.SecurityIsolationStatus🧪

返回类型:object

属性必填标记类型描述原文
coopCrossOriginOpenerPolicyStatus
coepCrossOriginEmbedderPolicyStatus
csparray[ContentSecurityPolicyStatus]

📌Network.ServiceWorkerRouterInfo🧪

返回类型:object

属性必填标记类型描述原文
ruleIdMatchedinteger匹配规则的ID。如果存在匹配的规则,此字段将被设置,否则将不设置任何值。
ENID of the rule matched. If there is a matched rule, this field will be set, otherwiser no value will be set.
matchedSourceTypeServiceWorkerRouterSource匹配规则的路由来源。如果存在匹配的规则,此字段将被设置,否则将不会设置任何值。
ENThe router source of the matched rule. If there is a matched rule, this field will be set, otherwise no value will be set.
actualSourceTypeServiceWorkerRouterSource实际使用的路由器源。
ENThe actual router source used.

📌Network.SetCookieBlockedReason🧪

响应中Cookie可能未被存储的原因类型。
允许值:SecureOnlySameSiteStrictSameSiteLaxSameSiteUnspecifiedTreatedAsLaxSameSiteNoneInsecureUserPreferencesThirdPartyPhaseoutThirdPartyBlockedInFirstPartySetSyntaxErrorSchemeNotSupportedOverwriteSecureInvalidDomainInvalidPrefixUnknownErrorSchemefulSameSiteStrictSchemefulSameSiteLaxSchemefulSameSiteUnspecifiedTreatedAsLaxNameValuePairExceedsMaxSizeDisallowedCharacterNoCookieContent

EN
Types of reasons why a cookie may not be stored from a response.
Allowed Values: SecureOnly, SameSiteStrict, SameSiteLax, SameSiteUnspecifiedTreatedAsLax, SameSiteNoneInsecure, UserPreferences, ThirdPartyPhaseout, ThirdPartyBlockedInFirstPartySet, SyntaxError, SchemeNotSupported, OverwriteSecure, InvalidDomain, InvalidPrefix, UnknownError, SchemefulSameSiteStrict, SchemefulSameSiteLax, SchemefulSameSiteUnspecifiedTreatedAsLax, NameValuePairExceedsMaxSize, DisallowedCharacter, NoCookieContent

返回类型:string


📌Network.SignedExchangeError🧪

有关签名交换响应的信息。

EN
Information about a signed exchange response.

返回类型:object

属性必填标记类型描述原文
message✔️string错误信息。
ENError message.
signatureIndexinteger导致错误的签名索引。
ENThe index of the signature which caused the error.
errorFieldSignedExchangeErrorField导致错误的字段。
ENThe field which caused the error.

📌Network.SignedExchangeErrorField🧪

与签名交换相关错误的字段类型。
允许的值:signatureSigsignatureIntegritysignatureCertUrlsignatureCertSha256signatureValidityUrlsignatureTimestamps

EN
Field type for a signed exchange related error.
Allowed Values: signatureSig, signatureIntegrity, signatureCertUrl, signatureCertSha256, signatureValidityUrl, signatureTimestamps

返回类型:string


📌Network.SignedExchangeHeader🧪

关于签名交换头部的信息。https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation

EN

返回类型:object

属性必填标记类型描述原文
requestUrl✔️string签名交换请求URL。
ENSigned exchange request URL.
responseCode✔️integerSigned exchange响应代码。
ENSigned exchange response code.
responseHeaders✔️HeadersSigned exchange响应头。
ENSigned exchange response headers.
signatures✔️array[SignedExchangeSignature]Signed exchange response signature.
ENSigned exchange response signature.
headerIntegrity✔️stringSigned exchange header integrity hash in the form of sha256-<base64-hash-value>.
ENSigned exchange header integrity hash in the form of sha256-<base64-hash-value>.

📌Network.SignedExchangeInfo🧪

关于已签名交换响应的信息。

EN
Information about a signed exchange response.

返回类型:object

属性必填标记类型描述原文
outerResponse✔️Response从网络接收到的已签名HTTP交换的外部响应。
ENThe outer response of signed HTTP exchange which was received from network.
hasExtraInfo✔️booleansigned exchange的网络响应是否伴随有额外的头部信息。
ENWhether network response for the signed exchange was accompanied by extra headers.
headerSignedExchangeHeader关于已签名交换标头的信息。
ENInformation about the signed exchange header.
securityDetailsSecurityDetails已签名交换标头的安全详情。
ENSecurity details for the signed exchange header.
errorsarray[SignedExchangeError]处理签名交换时发生错误。
ENErrors occurred while handling the signed exchange.

📌Network.SignedExchangeSignature🧪

关于签名交换签名的信息。https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1

EN

返回类型:object

属性必填标记类型描述原文
label✔️string签名交换签名标签。
ENSigned exchange signature label.
signature✔️string有符号交换签名的十六进制字符串。
ENThe hex string of signed exchange signature.
integrity✔️string签名交换签名完整性。
ENSigned exchange signature integrity.
certUrlstring签名交换签名证书URL。
ENSigned exchange signature cert Url.
certSha256string签名交换签名证书sha256的十六进制字符串。
ENThe hex string of signed exchange signature cert sha256.
validityUrl✔️string签名交换签名有效性网址。
ENSigned exchange signature validity Url.
date✔️integerSigned exchange signature date.
ENSigned exchange signature date.
expires✔️integerSigned exchange signature expires.
ENSigned exchange signature expires.
certificatesarray[string]已编码的证书。
ENThe encoded certificates.

📌Network.TerminationEventDetails🧪

会话事件详情,具体针对终止情况。

EN
Session event details specific to termination.

返回类型:object

属性必填标记类型描述原文
deletionReason✔️string会话被删除的原因。
允许的值:ExpiredFailedToRestoreKeyFailedToUnwrapKeyStoragePartitionClearedClearBrowsingDataServerRequestedInvalidSessionParamsRefreshFatalError
ENThe reason for a session being deleted.
Allowed Values: Expired, FailedToRestoreKey, FailedToUnwrapKey, StoragePartitionCleared, ClearBrowsingData, ServerRequested, InvalidSessionParams, RefreshFatalError

📌Network.TrustTokenOperationType🧪

允许的值:IssuanceRedemptionSigning

EN
Allowed Values: Issuance, Redemption, Signing

返回类型:string


📌Network.TrustTokenParams🧪

确定要执行的信任令牌操作类型,并根据类型提供一些额外参数。这些值在 third_party/blink/renderer/core/fetch/trust_token.idl 中指定。

EN
Determines what type of Trust Token operation is executed and depending on the type, some additional parameters. The values are specified in third_party/blink/renderer/core/fetch/trust_token.idl.

返回类型:object

属性必填标记类型描述原文
operation✔️TrustTokenOperationType
refreshPolicy✔️string仅针对"token-redemption"操作设置,用于决定是请求全新的SRR还是使用仍然有效的缓存SRR。
允许取值:UseCachedRefresh
ENOnly set for "token-redemption" operation and determine whether to request a fresh SRR or use a still valid cached SRR.
Allowed Values: UseCached, Refresh
issuersarray[string]请求令牌或赎回记录的发行者来源。
ENOrigins of issuers from whom to request tokens or redemption records.