vendor/github.com/go-rod/rod/lib/proto/network.go
3140 lines · 125643 bytes
1// This file is generated by "./lib/proto/generate"
2
3package proto
4
5import (
6 "github.com/ysmood/gson"
7)
8
9/*
10
11Network
12
13Network domain allows tracking network activities of the page. It exposes information about http,
14file, data and other requests and responses, their headers, bodies, timing, etc.
15
16*/
17
18// NetworkResourceType Resource type as it was perceived by the rendering engine.
19type NetworkResourceType string
20
21const (
22 // NetworkResourceTypeDocument enum const.
23 NetworkResourceTypeDocument NetworkResourceType = "Document"
24
25 // NetworkResourceTypeStylesheet enum const.
26 NetworkResourceTypeStylesheet NetworkResourceType = "Stylesheet"
27
28 // NetworkResourceTypeImage enum const.
29 NetworkResourceTypeImage NetworkResourceType = "Image"
30
31 // NetworkResourceTypeMedia enum const.
32 NetworkResourceTypeMedia NetworkResourceType = "Media"
33
34 // NetworkResourceTypeFont enum const.
35 NetworkResourceTypeFont NetworkResourceType = "Font"
36
37 // NetworkResourceTypeScript enum const.
38 NetworkResourceTypeScript NetworkResourceType = "Script"
39
40 // NetworkResourceTypeTextTrack enum const.
41 NetworkResourceTypeTextTrack NetworkResourceType = "TextTrack"
42
43 // NetworkResourceTypeXHR enum const.
44 NetworkResourceTypeXHR NetworkResourceType = "XHR"
45
46 // NetworkResourceTypeFetch enum const.
47 NetworkResourceTypeFetch NetworkResourceType = "Fetch"
48
49 // NetworkResourceTypePrefetch enum const.
50 NetworkResourceTypePrefetch NetworkResourceType = "Prefetch"
51
52 // NetworkResourceTypeEventSource enum const.
53 NetworkResourceTypeEventSource NetworkResourceType = "EventSource"
54
55 // NetworkResourceTypeWebSocket enum const.
56 NetworkResourceTypeWebSocket NetworkResourceType = "WebSocket"
57
58 // NetworkResourceTypeManifest enum const.
59 NetworkResourceTypeManifest NetworkResourceType = "Manifest"
60
61 // NetworkResourceTypeSignedExchange enum const.
62 NetworkResourceTypeSignedExchange NetworkResourceType = "SignedExchange"
63
64 // NetworkResourceTypePing enum const.
65 NetworkResourceTypePing NetworkResourceType = "Ping"
66
67 // NetworkResourceTypeCSPViolationReport enum const.
68 NetworkResourceTypeCSPViolationReport NetworkResourceType = "CSPViolationReport"
69
70 // NetworkResourceTypePreflight enum const.
71 NetworkResourceTypePreflight NetworkResourceType = "Preflight"
72
73 // NetworkResourceTypeOther enum const.
74 NetworkResourceTypeOther NetworkResourceType = "Other"
75)
76
77// NetworkLoaderID Unique loader identifier.
78type NetworkLoaderID string
79
80// NetworkRequestID Unique request identifier.
81type NetworkRequestID string
82
83// NetworkInterceptionID Unique intercepted request identifier.
84type NetworkInterceptionID string
85
86// NetworkErrorReason Network level fetch failure reason.
87type NetworkErrorReason string
88
89const (
90 // NetworkErrorReasonFailed enum const.
91 NetworkErrorReasonFailed NetworkErrorReason = "Failed"
92
93 // NetworkErrorReasonAborted enum const.
94 NetworkErrorReasonAborted NetworkErrorReason = "Aborted"
95
96 // NetworkErrorReasonTimedOut enum const.
97 NetworkErrorReasonTimedOut NetworkErrorReason = "TimedOut"
98
99 // NetworkErrorReasonAccessDenied enum const.
100 NetworkErrorReasonAccessDenied NetworkErrorReason = "AccessDenied"
101
102 // NetworkErrorReasonConnectionClosed enum const.
103 NetworkErrorReasonConnectionClosed NetworkErrorReason = "ConnectionClosed"
104
105 // NetworkErrorReasonConnectionReset enum const.
106 NetworkErrorReasonConnectionReset NetworkErrorReason = "ConnectionReset"
107
108 // NetworkErrorReasonConnectionRefused enum const.
109 NetworkErrorReasonConnectionRefused NetworkErrorReason = "ConnectionRefused"
110
111 // NetworkErrorReasonConnectionAborted enum const.
112 NetworkErrorReasonConnectionAborted NetworkErrorReason = "ConnectionAborted"
113
114 // NetworkErrorReasonConnectionFailed enum const.
115 NetworkErrorReasonConnectionFailed NetworkErrorReason = "ConnectionFailed"
116
117 // NetworkErrorReasonNameNotResolved enum const.
118 NetworkErrorReasonNameNotResolved NetworkErrorReason = "NameNotResolved"
119
120 // NetworkErrorReasonInternetDisconnected enum const.
121 NetworkErrorReasonInternetDisconnected NetworkErrorReason = "InternetDisconnected"
122
123 // NetworkErrorReasonAddressUnreachable enum const.
124 NetworkErrorReasonAddressUnreachable NetworkErrorReason = "AddressUnreachable"
125
126 // NetworkErrorReasonBlockedByClient enum const.
127 NetworkErrorReasonBlockedByClient NetworkErrorReason = "BlockedByClient"
128
129 // NetworkErrorReasonBlockedByResponse enum const.
130 NetworkErrorReasonBlockedByResponse NetworkErrorReason = "BlockedByResponse"
131)
132
133// NetworkHeaders Request / response headers as keys / values of JSON object.
134type NetworkHeaders map[string]gson.JSON
135
136// NetworkConnectionType The underlying connection technology that the browser is supposedly using.
137type NetworkConnectionType string
138
139const (
140 // NetworkConnectionTypeNone enum const.
141 NetworkConnectionTypeNone NetworkConnectionType = "none"
142
143 // NetworkConnectionTypeCellular2g enum const.
144 NetworkConnectionTypeCellular2g NetworkConnectionType = "cellular2g"
145
146 // NetworkConnectionTypeCellular3g enum const.
147 NetworkConnectionTypeCellular3g NetworkConnectionType = "cellular3g"
148
149 // NetworkConnectionTypeCellular4g enum const.
150 NetworkConnectionTypeCellular4g NetworkConnectionType = "cellular4g"
151
152 // NetworkConnectionTypeBluetooth enum const.
153 NetworkConnectionTypeBluetooth NetworkConnectionType = "bluetooth"
154
155 // NetworkConnectionTypeEthernet enum const.
156 NetworkConnectionTypeEthernet NetworkConnectionType = "ethernet"
157
158 // NetworkConnectionTypeWifi enum const.
159 NetworkConnectionTypeWifi NetworkConnectionType = "wifi"
160
161 // NetworkConnectionTypeWimax enum const.
162 NetworkConnectionTypeWimax NetworkConnectionType = "wimax"
163
164 // NetworkConnectionTypeOther enum const.
165 NetworkConnectionTypeOther NetworkConnectionType = "other"
166)
167
168// NetworkCookieSameSite Represents the cookie's 'SameSite' status:
169// https://tools.ietf.org/html/draft-west-first-party-cookies
170type NetworkCookieSameSite string
171
172const (
173 // NetworkCookieSameSiteStrict enum const.
174 NetworkCookieSameSiteStrict NetworkCookieSameSite = "Strict"
175
176 // NetworkCookieSameSiteLax enum const.
177 NetworkCookieSameSiteLax NetworkCookieSameSite = "Lax"
178
179 // NetworkCookieSameSiteNone enum const.
180 NetworkCookieSameSiteNone NetworkCookieSameSite = "None"
181)
182
183// NetworkCookiePriority (experimental) Represents the cookie's 'Priority' status:
184// https://tools.ietf.org/html/draft-west-cookie-priority-00
185type NetworkCookiePriority string
186
187const (
188 // NetworkCookiePriorityLow enum const.
189 NetworkCookiePriorityLow NetworkCookiePriority = "Low"
190
191 // NetworkCookiePriorityMedium enum const.
192 NetworkCookiePriorityMedium NetworkCookiePriority = "Medium"
193
194 // NetworkCookiePriorityHigh enum const.
195 NetworkCookiePriorityHigh NetworkCookiePriority = "High"
196)
197
198// NetworkCookieSourceScheme (experimental) Represents the source scheme of the origin that originally set the cookie.
199// A value of "Unset" allows protocol clients to emulate legacy cookie scope for the scheme.
200// This is a temporary ability and it will be removed in the future.
201type NetworkCookieSourceScheme string
202
203const (
204 // NetworkCookieSourceSchemeUnset enum const.
205 NetworkCookieSourceSchemeUnset NetworkCookieSourceScheme = "Unset"
206
207 // NetworkCookieSourceSchemeNonSecure enum const.
208 NetworkCookieSourceSchemeNonSecure NetworkCookieSourceScheme = "NonSecure"
209
210 // NetworkCookieSourceSchemeSecure enum const.
211 NetworkCookieSourceSchemeSecure NetworkCookieSourceScheme = "Secure"
212)
213
214// NetworkResourceTiming Timing information for the request.
215type NetworkResourceTiming struct {
216 // RequestTime Timing's requestTime is a baseline in seconds, while the other numbers are ticks in
217 // milliseconds relatively to this requestTime.
218 RequestTime float64 `json:"requestTime"`
219
220 // ProxyStart Started resolving proxy.
221 ProxyStart float64 `json:"proxyStart"`
222
223 // ProxyEnd Finished resolving proxy.
224 ProxyEnd float64 `json:"proxyEnd"`
225
226 // DNSStart Started DNS address resolve.
227 DNSStart float64 `json:"dnsStart"`
228
229 // DNSEnd Finished DNS address resolve.
230 DNSEnd float64 `json:"dnsEnd"`
231
232 // ConnectStart Started connecting to the remote host.
233 ConnectStart float64 `json:"connectStart"`
234
235 // ConnectEnd Connected to the remote host.
236 ConnectEnd float64 `json:"connectEnd"`
237
238 // SslStart Started SSL handshake.
239 SslStart float64 `json:"sslStart"`
240
241 // SslEnd Finished SSL handshake.
242 SslEnd float64 `json:"sslEnd"`
243
244 // WorkerStart (experimental) Started running ServiceWorker.
245 WorkerStart float64 `json:"workerStart"`
246
247 // WorkerReady (experimental) Finished Starting ServiceWorker.
248 WorkerReady float64 `json:"workerReady"`
249
250 // WorkerFetchStart (experimental) Started fetch event.
251 WorkerFetchStart float64 `json:"workerFetchStart"`
252
253 // WorkerRespondWithSettled (experimental) Settled fetch event respondWith promise.
254 WorkerRespondWithSettled float64 `json:"workerRespondWithSettled"`
255
256 // WorkerRouterEvaluationStart (experimental) (optional) Started ServiceWorker static routing source evaluation.
257 WorkerRouterEvaluationStart *float64 `json:"workerRouterEvaluationStart,omitempty"`
258
259 // WorkerCacheLookupStart (experimental) (optional) Started cache lookup when the source was evaluated to `cache`.
260 WorkerCacheLookupStart *float64 `json:"workerCacheLookupStart,omitempty"`
261
262 // SendStart Started sending request.
263 SendStart float64 `json:"sendStart"`
264
265 // SendEnd Finished sending request.
266 SendEnd float64 `json:"sendEnd"`
267
268 // PushStart (experimental) Time the server started pushing request.
269 PushStart float64 `json:"pushStart"`
270
271 // PushEnd (experimental) Time the server finished pushing request.
272 PushEnd float64 `json:"pushEnd"`
273
274 // ReceiveHeadersStart (experimental) Started receiving response headers.
275 ReceiveHeadersStart float64 `json:"receiveHeadersStart"`
276
277 // ReceiveHeadersEnd Finished receiving response headers.
278 ReceiveHeadersEnd float64 `json:"receiveHeadersEnd"`
279}
280
281// NetworkResourcePriority Loading priority of a resource request.
282type NetworkResourcePriority string
283
284const (
285 // NetworkResourcePriorityVeryLow enum const.
286 NetworkResourcePriorityVeryLow NetworkResourcePriority = "VeryLow"
287
288 // NetworkResourcePriorityLow enum const.
289 NetworkResourcePriorityLow NetworkResourcePriority = "Low"
290
291 // NetworkResourcePriorityMedium enum const.
292 NetworkResourcePriorityMedium NetworkResourcePriority = "Medium"
293
294 // NetworkResourcePriorityHigh enum const.
295 NetworkResourcePriorityHigh NetworkResourcePriority = "High"
296
297 // NetworkResourcePriorityVeryHigh enum const.
298 NetworkResourcePriorityVeryHigh NetworkResourcePriority = "VeryHigh"
299)
300
301// NetworkPostDataEntry Post data entry for HTTP request.
302type NetworkPostDataEntry struct {
303 // Bytes (optional) ...
304 Bytes []byte `json:"bytes,omitempty"`
305}
306
307// NetworkRequestReferrerPolicy enum.
308type NetworkRequestReferrerPolicy string
309
310const (
311 // NetworkRequestReferrerPolicyUnsafeURL enum const.
312 NetworkRequestReferrerPolicyUnsafeURL NetworkRequestReferrerPolicy = "unsafe-url"
313
314 // NetworkRequestReferrerPolicyNoReferrerWhenDowngrade enum const.
315 NetworkRequestReferrerPolicyNoReferrerWhenDowngrade NetworkRequestReferrerPolicy = "no-referrer-when-downgrade"
316
317 // NetworkRequestReferrerPolicyNoReferrer enum const.
318 NetworkRequestReferrerPolicyNoReferrer NetworkRequestReferrerPolicy = "no-referrer"
319
320 // NetworkRequestReferrerPolicyOrigin enum const.
321 NetworkRequestReferrerPolicyOrigin NetworkRequestReferrerPolicy = "origin"
322
323 // NetworkRequestReferrerPolicyOriginWhenCrossOrigin enum const.
324 NetworkRequestReferrerPolicyOriginWhenCrossOrigin NetworkRequestReferrerPolicy = "origin-when-cross-origin"
325
326 // NetworkRequestReferrerPolicySameOrigin enum const.
327 NetworkRequestReferrerPolicySameOrigin NetworkRequestReferrerPolicy = "same-origin"
328
329 // NetworkRequestReferrerPolicyStrictOrigin enum const.
330 NetworkRequestReferrerPolicyStrictOrigin NetworkRequestReferrerPolicy = "strict-origin"
331
332 // NetworkRequestReferrerPolicyStrictOriginWhenCrossOrigin enum const.
333 NetworkRequestReferrerPolicyStrictOriginWhenCrossOrigin NetworkRequestReferrerPolicy = "strict-origin-when-cross-origin"
334)
335
336// NetworkRequest HTTP request data.
337type NetworkRequest struct {
338 // URL Request URL (without fragment).
339 URL string `json:"url"`
340
341 // URLFragment (optional) Fragment of the requested URL starting with hash, if present.
342 URLFragment string `json:"urlFragment,omitempty"`
343
344 // Method HTTP request method.
345 Method string `json:"method"`
346
347 // Headers HTTP request headers.
348 Headers NetworkHeaders `json:"headers"`
349
350 // PostData (deprecated) (optional) HTTP POST request data.
351 // Use postDataEntries instead.
352 PostData string `json:"postData,omitempty"`
353
354 // HasPostData (optional) True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.
355 HasPostData bool `json:"hasPostData,omitempty"`
356
357 // PostDataEntries (experimental) (optional) Request body elements (post data broken into individual entries).
358 PostDataEntries []*NetworkPostDataEntry `json:"postDataEntries,omitempty"`
359
360 // MixedContentType (optional) The mixed content type of the request.
361 MixedContentType SecurityMixedContentType `json:"mixedContentType,omitempty"`
362
363 // InitialPriority Priority of the resource request at the time request is sent.
364 InitialPriority NetworkResourcePriority `json:"initialPriority"`
365
366 // ReferrerPolicy The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
367 ReferrerPolicy NetworkRequestReferrerPolicy `json:"referrerPolicy"`
368
369 // IsLinkPreload (optional) Whether is loaded via link preload.
370 IsLinkPreload bool `json:"isLinkPreload,omitempty"`
371
372 // TrustTokenParams (experimental) (optional) Set for requests when the TrustToken API is used. Contains the parameters
373 // passed by the developer (e.g. via "fetch") as understood by the backend.
374 TrustTokenParams *NetworkTrustTokenParams `json:"trustTokenParams,omitempty"`
375
376 // IsSameSite (experimental) (optional) True if this resource request is considered to be the 'same site' as the
377 // request corresponding to the main frame.
378 IsSameSite bool `json:"isSameSite,omitempty"`
379}
380
381// NetworkSignedCertificateTimestamp Details of a signed certificate timestamp (SCT).
382type NetworkSignedCertificateTimestamp struct {
383 // Status Validation status.
384 Status string `json:"status"`
385
386 // Origin.
387 Origin string `json:"origin"`
388
389 // LogDescription Log name / description.
390 LogDescription string `json:"logDescription"`
391
392 // LogID Log ID.
393 LogID string `json:"logId"`
394
395 // Timestamp Issuance date. Unlike TimeSinceEpoch, this contains the number of
396 // milliseconds since January 1, 1970, UTC, not the number of seconds.
397 Timestamp float64 `json:"timestamp"`
398
399 // HashAlgorithm Hash algorithm.
400 HashAlgorithm string `json:"hashAlgorithm"`
401
402 // SignatureAlgorithm Signature algorithm.
403 SignatureAlgorithm string `json:"signatureAlgorithm"`
404
405 // SignatureData Signature data.
406 SignatureData string `json:"signatureData"`
407}
408
409// NetworkSecurityDetails Security details about a request.
410type NetworkSecurityDetails struct {
411 // Protocol name (e.g. "TLS 1.2" or "QUIC").
412 Protocol string `json:"protocol"`
413
414 // KeyExchange Key Exchange used by the connection, or the empty string if not applicable.
415 KeyExchange string `json:"keyExchange"`
416
417 // KeyExchangeGroup (optional) (EC)DH group used by the connection, if applicable.
418 KeyExchangeGroup string `json:"keyExchangeGroup,omitempty"`
419
420 // Cipher name.
421 Cipher string `json:"cipher"`
422
423 // Mac (optional) TLS MAC. Note that AEAD ciphers do not have separate MACs.
424 Mac string `json:"mac,omitempty"`
425
426 // CertificateID Certificate ID value.
427 CertificateID SecurityCertificateID `json:"certificateId"`
428
429 // SubjectName Certificate subject name.
430 SubjectName string `json:"subjectName"`
431
432 // SanList Subject Alternative Name (SAN) DNS names and IP addresses.
433 SanList []string `json:"sanList"`
434
435 // Issuer Name of the issuing CA.
436 Issuer string `json:"issuer"`
437
438 // ValidFrom Certificate valid from date.
439 ValidFrom TimeSinceEpoch `json:"validFrom"`
440
441 // ValidTo Certificate valid to (expiration) date
442 ValidTo TimeSinceEpoch `json:"validTo"`
443
444 // SignedCertificateTimestampList List of signed certificate timestamps (SCTs).
445 SignedCertificateTimestampList []*NetworkSignedCertificateTimestamp `json:"signedCertificateTimestampList"`
446
447 // CertificateTransparencyCompliance Whether the request complied with Certificate Transparency policy
448 CertificateTransparencyCompliance NetworkCertificateTransparencyCompliance `json:"certificateTransparencyCompliance"`
449
450 // ServerSignatureAlgorithm (optional) The signature algorithm used by the server in the TLS server signature,
451 // represented as a TLS SignatureScheme code point. Omitted if not
452 // applicable or not known.
453 ServerSignatureAlgorithm *int `json:"serverSignatureAlgorithm,omitempty"`
454
455 // EncryptedClientHello Whether the connection used Encrypted ClientHello
456 EncryptedClientHello bool `json:"encryptedClientHello"`
457}
458
459// NetworkCertificateTransparencyCompliance Whether the request complied with Certificate Transparency policy.
460type NetworkCertificateTransparencyCompliance string
461
462const (
463 // NetworkCertificateTransparencyComplianceUnknown enum const.
464 NetworkCertificateTransparencyComplianceUnknown NetworkCertificateTransparencyCompliance = "unknown"
465
466 // NetworkCertificateTransparencyComplianceNotCompliant enum const.
467 NetworkCertificateTransparencyComplianceNotCompliant NetworkCertificateTransparencyCompliance = "not-compliant"
468
469 // NetworkCertificateTransparencyComplianceCompliant enum const.
470 NetworkCertificateTransparencyComplianceCompliant NetworkCertificateTransparencyCompliance = "compliant"
471)
472
473// NetworkBlockedReason The reason why request was blocked.
474type NetworkBlockedReason string
475
476const (
477 // NetworkBlockedReasonOther enum const.
478 NetworkBlockedReasonOther NetworkBlockedReason = "other"
479
480 // NetworkBlockedReasonCsp enum const.
481 NetworkBlockedReasonCsp NetworkBlockedReason = "csp"
482
483 // NetworkBlockedReasonMixedContent enum const.
484 NetworkBlockedReasonMixedContent NetworkBlockedReason = "mixed-content"
485
486 // NetworkBlockedReasonOrigin enum const.
487 NetworkBlockedReasonOrigin NetworkBlockedReason = "origin"
488
489 // NetworkBlockedReasonInspector enum const.
490 NetworkBlockedReasonInspector NetworkBlockedReason = "inspector"
491
492 // NetworkBlockedReasonSubresourceFilter enum const.
493 NetworkBlockedReasonSubresourceFilter NetworkBlockedReason = "subresource-filter"
494
495 // NetworkBlockedReasonContentType enum const.
496 NetworkBlockedReasonContentType NetworkBlockedReason = "content-type"
497
498 // NetworkBlockedReasonCoepFrameResourceNeedsCoepHeader enum const.
499 NetworkBlockedReasonCoepFrameResourceNeedsCoepHeader NetworkBlockedReason = "coep-frame-resource-needs-coep-header"
500
501 // NetworkBlockedReasonCoopSandboxedIframeCannotNavigateToCoopPage enum const.
502 NetworkBlockedReasonCoopSandboxedIframeCannotNavigateToCoopPage NetworkBlockedReason = "coop-sandboxed-iframe-cannot-navigate-to-coop-page"
503
504 // NetworkBlockedReasonCorpNotSameOrigin enum const.
505 NetworkBlockedReasonCorpNotSameOrigin NetworkBlockedReason = "corp-not-same-origin"
506
507 // NetworkBlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep enum const.
508 NetworkBlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep NetworkBlockedReason = "corp-not-same-origin-after-defaulted-to-same-origin-by-coep"
509
510 // NetworkBlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByDip enum const.
511 NetworkBlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByDip NetworkBlockedReason = "corp-not-same-origin-after-defaulted-to-same-origin-by-dip"
512
513 // NetworkBlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip enum const.
514 NetworkBlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip NetworkBlockedReason = "corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip"
515
516 // NetworkBlockedReasonCorpNotSameSite enum const.
517 NetworkBlockedReasonCorpNotSameSite NetworkBlockedReason = "corp-not-same-site"
518)
519
520// NetworkCorsError The reason why request was blocked.
521type NetworkCorsError string
522
523const (
524 // NetworkCorsErrorDisallowedByMode enum const.
525 NetworkCorsErrorDisallowedByMode NetworkCorsError = "DisallowedByMode"
526
527 // NetworkCorsErrorInvalidResponse enum const.
528 NetworkCorsErrorInvalidResponse NetworkCorsError = "InvalidResponse"
529
530 // NetworkCorsErrorWildcardOriginNotAllowed enum const.
531 NetworkCorsErrorWildcardOriginNotAllowed NetworkCorsError = "WildcardOriginNotAllowed"
532
533 // NetworkCorsErrorMissingAllowOriginHeader enum const.
534 NetworkCorsErrorMissingAllowOriginHeader NetworkCorsError = "MissingAllowOriginHeader"
535
536 // NetworkCorsErrorMultipleAllowOriginValues enum const.
537 NetworkCorsErrorMultipleAllowOriginValues NetworkCorsError = "MultipleAllowOriginValues"
538
539 // NetworkCorsErrorInvalidAllowOriginValue enum const.
540 NetworkCorsErrorInvalidAllowOriginValue NetworkCorsError = "InvalidAllowOriginValue"
541
542 // NetworkCorsErrorAllowOriginMismatch enum const.
543 NetworkCorsErrorAllowOriginMismatch NetworkCorsError = "AllowOriginMismatch"
544
545 // NetworkCorsErrorInvalidAllowCredentials enum const.
546 NetworkCorsErrorInvalidAllowCredentials NetworkCorsError = "InvalidAllowCredentials"
547
548 // NetworkCorsErrorCorsDisabledScheme enum const.
549 NetworkCorsErrorCorsDisabledScheme NetworkCorsError = "CorsDisabledScheme"
550
551 // NetworkCorsErrorPreflightInvalidStatus enum const.
552 NetworkCorsErrorPreflightInvalidStatus NetworkCorsError = "PreflightInvalidStatus"
553
554 // NetworkCorsErrorPreflightDisallowedRedirect enum const.
555 NetworkCorsErrorPreflightDisallowedRedirect NetworkCorsError = "PreflightDisallowedRedirect"
556
557 // NetworkCorsErrorPreflightWildcardOriginNotAllowed enum const.
558 NetworkCorsErrorPreflightWildcardOriginNotAllowed NetworkCorsError = "PreflightWildcardOriginNotAllowed"
559
560 // NetworkCorsErrorPreflightMissingAllowOriginHeader enum const.
561 NetworkCorsErrorPreflightMissingAllowOriginHeader NetworkCorsError = "PreflightMissingAllowOriginHeader"
562
563 // NetworkCorsErrorPreflightMultipleAllowOriginValues enum const.
564 NetworkCorsErrorPreflightMultipleAllowOriginValues NetworkCorsError = "PreflightMultipleAllowOriginValues"
565
566 // NetworkCorsErrorPreflightInvalidAllowOriginValue enum const.
567 NetworkCorsErrorPreflightInvalidAllowOriginValue NetworkCorsError = "PreflightInvalidAllowOriginValue"
568
569 // NetworkCorsErrorPreflightAllowOriginMismatch enum const.
570 NetworkCorsErrorPreflightAllowOriginMismatch NetworkCorsError = "PreflightAllowOriginMismatch"
571
572 // NetworkCorsErrorPreflightInvalidAllowCredentials enum const.
573 NetworkCorsErrorPreflightInvalidAllowCredentials NetworkCorsError = "PreflightInvalidAllowCredentials"
574
575 // NetworkCorsErrorPreflightMissingAllowExternal enum const.
576 NetworkCorsErrorPreflightMissingAllowExternal NetworkCorsError = "PreflightMissingAllowExternal"
577
578 // NetworkCorsErrorPreflightInvalidAllowExternal enum const.
579 NetworkCorsErrorPreflightInvalidAllowExternal NetworkCorsError = "PreflightInvalidAllowExternal"
580
581 // NetworkCorsErrorPreflightMissingAllowPrivateNetwork enum const.
582 NetworkCorsErrorPreflightMissingAllowPrivateNetwork NetworkCorsError = "PreflightMissingAllowPrivateNetwork"
583
584 // NetworkCorsErrorPreflightInvalidAllowPrivateNetwork enum const.
585 NetworkCorsErrorPreflightInvalidAllowPrivateNetwork NetworkCorsError = "PreflightInvalidAllowPrivateNetwork"
586
587 // NetworkCorsErrorInvalidAllowMethodsPreflightResponse enum const.
588 NetworkCorsErrorInvalidAllowMethodsPreflightResponse NetworkCorsError = "InvalidAllowMethodsPreflightResponse"
589
590 // NetworkCorsErrorInvalidAllowHeadersPreflightResponse enum const.
591 NetworkCorsErrorInvalidAllowHeadersPreflightResponse NetworkCorsError = "InvalidAllowHeadersPreflightResponse"
592
593 // NetworkCorsErrorMethodDisallowedByPreflightResponse enum const.
594 NetworkCorsErrorMethodDisallowedByPreflightResponse NetworkCorsError = "MethodDisallowedByPreflightResponse"
595
596 // NetworkCorsErrorHeaderDisallowedByPreflightResponse enum const.
597 NetworkCorsErrorHeaderDisallowedByPreflightResponse NetworkCorsError = "HeaderDisallowedByPreflightResponse"
598
599 // NetworkCorsErrorRedirectContainsCredentials enum const.
600 NetworkCorsErrorRedirectContainsCredentials NetworkCorsError = "RedirectContainsCredentials"
601
602 // NetworkCorsErrorInsecurePrivateNetwork enum const.
603 NetworkCorsErrorInsecurePrivateNetwork NetworkCorsError = "InsecurePrivateNetwork"
604
605 // NetworkCorsErrorInvalidPrivateNetworkAccess enum const.
606 NetworkCorsErrorInvalidPrivateNetworkAccess NetworkCorsError = "InvalidPrivateNetworkAccess"
607
608 // NetworkCorsErrorUnexpectedPrivateNetworkAccess enum const.
609 NetworkCorsErrorUnexpectedPrivateNetworkAccess NetworkCorsError = "UnexpectedPrivateNetworkAccess"
610
611 // NetworkCorsErrorNoCorsRedirectModeNotFollow enum const.
612 NetworkCorsErrorNoCorsRedirectModeNotFollow NetworkCorsError = "NoCorsRedirectModeNotFollow"
613
614 // NetworkCorsErrorPreflightMissingPrivateNetworkAccessID enum const.
615 NetworkCorsErrorPreflightMissingPrivateNetworkAccessID NetworkCorsError = "PreflightMissingPrivateNetworkAccessId"
616
617 // NetworkCorsErrorPreflightMissingPrivateNetworkAccessName enum const.
618 NetworkCorsErrorPreflightMissingPrivateNetworkAccessName NetworkCorsError = "PreflightMissingPrivateNetworkAccessName"
619
620 // NetworkCorsErrorPrivateNetworkAccessPermissionUnavailable enum const.
621 NetworkCorsErrorPrivateNetworkAccessPermissionUnavailable NetworkCorsError = "PrivateNetworkAccessPermissionUnavailable"
622
623 // NetworkCorsErrorPrivateNetworkAccessPermissionDenied enum const.
624 NetworkCorsErrorPrivateNetworkAccessPermissionDenied NetworkCorsError = "PrivateNetworkAccessPermissionDenied"
625)
626
627// NetworkCorsErrorStatus ...
628type NetworkCorsErrorStatus struct {
629 // CorsError ...
630 CorsError NetworkCorsError `json:"corsError"`
631
632 // FailedParameter ...
633 FailedParameter string `json:"failedParameter"`
634}
635
636// NetworkServiceWorkerResponseSource Source of serviceworker response.
637type NetworkServiceWorkerResponseSource string
638
639const (
640 // NetworkServiceWorkerResponseSourceCacheStorage enum const.
641 NetworkServiceWorkerResponseSourceCacheStorage NetworkServiceWorkerResponseSource = "cache-storage"
642
643 // NetworkServiceWorkerResponseSourceHTTPCache enum const.
644 NetworkServiceWorkerResponseSourceHTTPCache NetworkServiceWorkerResponseSource = "http-cache"
645
646 // NetworkServiceWorkerResponseSourceFallbackCode enum const.
647 NetworkServiceWorkerResponseSourceFallbackCode NetworkServiceWorkerResponseSource = "fallback-code"
648
649 // NetworkServiceWorkerResponseSourceNetwork enum const.
650 NetworkServiceWorkerResponseSourceNetwork NetworkServiceWorkerResponseSource = "network"
651)
652
653// NetworkTrustTokenParamsRefreshPolicy enum.
654type NetworkTrustTokenParamsRefreshPolicy string
655
656const (
657 // NetworkTrustTokenParamsRefreshPolicyUseCached enum const.
658 NetworkTrustTokenParamsRefreshPolicyUseCached NetworkTrustTokenParamsRefreshPolicy = "UseCached"
659
660 // NetworkTrustTokenParamsRefreshPolicyRefresh enum const.
661 NetworkTrustTokenParamsRefreshPolicyRefresh NetworkTrustTokenParamsRefreshPolicy = "Refresh"
662)
663
664// NetworkTrustTokenParams (experimental) Determines what type of Trust Token operation is executed and
665// depending on the type, some additional parameters. The values
666// are specified in third_party/blink/renderer/core/fetch/trust_token.idl.
667type NetworkTrustTokenParams struct {
668 // Operation ...
669 Operation NetworkTrustTokenOperationType `json:"operation"`
670
671 // RefreshPolicy Only set for "token-redemption" operation and determine whether
672 // to request a fresh SRR or use a still valid cached SRR.
673 RefreshPolicy NetworkTrustTokenParamsRefreshPolicy `json:"refreshPolicy"`
674
675 // Issuers (optional) Origins of issuers from whom to request tokens or redemption
676 // records.
677 Issuers []string `json:"issuers,omitempty"`
678}
679
680// NetworkTrustTokenOperationType (experimental) ...
681type NetworkTrustTokenOperationType string
682
683const (
684 // NetworkTrustTokenOperationTypeIssuance enum const.
685 NetworkTrustTokenOperationTypeIssuance NetworkTrustTokenOperationType = "Issuance"
686
687 // NetworkTrustTokenOperationTypeRedemption enum const.
688 NetworkTrustTokenOperationTypeRedemption NetworkTrustTokenOperationType = "Redemption"
689
690 // NetworkTrustTokenOperationTypeSigning enum const.
691 NetworkTrustTokenOperationTypeSigning NetworkTrustTokenOperationType = "Signing"
692)
693
694// NetworkAlternateProtocolUsage (experimental) The reason why Chrome uses a specific transport protocol for HTTP semantics.
695type NetworkAlternateProtocolUsage string
696
697const (
698 // NetworkAlternateProtocolUsageAlternativeJobWonWithoutRace enum const.
699 NetworkAlternateProtocolUsageAlternativeJobWonWithoutRace NetworkAlternateProtocolUsage = "alternativeJobWonWithoutRace"
700
701 // NetworkAlternateProtocolUsageAlternativeJobWonRace enum const.
702 NetworkAlternateProtocolUsageAlternativeJobWonRace NetworkAlternateProtocolUsage = "alternativeJobWonRace"
703
704 // NetworkAlternateProtocolUsageMainJobWonRace enum const.
705 NetworkAlternateProtocolUsageMainJobWonRace NetworkAlternateProtocolUsage = "mainJobWonRace"
706
707 // NetworkAlternateProtocolUsageMappingMissing enum const.
708 NetworkAlternateProtocolUsageMappingMissing NetworkAlternateProtocolUsage = "mappingMissing"
709
710 // NetworkAlternateProtocolUsageBroken enum const.
711 NetworkAlternateProtocolUsageBroken NetworkAlternateProtocolUsage = "broken"
712
713 // NetworkAlternateProtocolUsageDNSAlpnH3JobWonWithoutRace enum const.
714 NetworkAlternateProtocolUsageDNSAlpnH3JobWonWithoutRace NetworkAlternateProtocolUsage = "dnsAlpnH3JobWonWithoutRace"
715
716 // NetworkAlternateProtocolUsageDNSAlpnH3JobWonRace enum const.
717 NetworkAlternateProtocolUsageDNSAlpnH3JobWonRace NetworkAlternateProtocolUsage = "dnsAlpnH3JobWonRace"
718
719 // NetworkAlternateProtocolUsageUnspecifiedReason enum const.
720 NetworkAlternateProtocolUsageUnspecifiedReason NetworkAlternateProtocolUsage = "unspecifiedReason"
721)
722
723// NetworkServiceWorkerRouterSource Source of service worker router.
724type NetworkServiceWorkerRouterSource string
725
726const (
727 // NetworkServiceWorkerRouterSourceNetwork enum const.
728 NetworkServiceWorkerRouterSourceNetwork NetworkServiceWorkerRouterSource = "network"
729
730 // NetworkServiceWorkerRouterSourceCache enum const.
731 NetworkServiceWorkerRouterSourceCache NetworkServiceWorkerRouterSource = "cache"
732
733 // NetworkServiceWorkerRouterSourceFetchEvent enum const.
734 NetworkServiceWorkerRouterSourceFetchEvent NetworkServiceWorkerRouterSource = "fetch-event"
735
736 // NetworkServiceWorkerRouterSourceRaceNetworkAndFetchHandler enum const.
737 NetworkServiceWorkerRouterSourceRaceNetworkAndFetchHandler NetworkServiceWorkerRouterSource = "race-network-and-fetch-handler"
738)
739
740// NetworkServiceWorkerRouterInfo (experimental) ...
741type NetworkServiceWorkerRouterInfo struct {
742 // RuleIDMatched (optional) ID of the rule matched. If there is a matched rule, this field will
743 // be set, otherwiser no value will be set.
744 RuleIDMatched *int `json:"ruleIdMatched,omitempty"`
745
746 // MatchedSourceType (optional) The router source of the matched rule. If there is a matched rule, this
747 // field will be set, otherwise no value will be set.
748 MatchedSourceType NetworkServiceWorkerRouterSource `json:"matchedSourceType,omitempty"`
749
750 // ActualSourceType (optional) The actual router source used.
751 ActualSourceType NetworkServiceWorkerRouterSource `json:"actualSourceType,omitempty"`
752}
753
754// NetworkResponse HTTP response data.
755type NetworkResponse struct {
756 // URL Response URL. This URL can be different from CachedResource.url in case of redirect.
757 URL string `json:"url"`
758
759 // Status HTTP response status code.
760 Status int `json:"status"`
761
762 // StatusText HTTP response status text.
763 StatusText string `json:"statusText"`
764
765 // Headers HTTP response headers.
766 Headers NetworkHeaders `json:"headers"`
767
768 // HeadersText (deprecated) (optional) HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo.
769 HeadersText string `json:"headersText,omitempty"`
770
771 // MIMEType Resource mimeType as determined by the browser.
772 MIMEType string `json:"mimeType"`
773
774 // Charset Resource charset as determined by the browser (if applicable).
775 Charset string `json:"charset"`
776
777 // RequestHeaders (optional) Refined HTTP request headers that were actually transmitted over the network.
778 RequestHeaders NetworkHeaders `json:"requestHeaders,omitempty"`
779
780 // RequestHeadersText (deprecated) (optional) HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo.
781 RequestHeadersText string `json:"requestHeadersText,omitempty"`
782
783 // ConnectionReused Specifies whether physical connection was actually reused for this request.
784 ConnectionReused bool `json:"connectionReused"`
785
786 // ConnectionID Physical connection id that was actually used for this request.
787 ConnectionID float64 `json:"connectionId"`
788
789 // RemoteIPAddress (optional) Remote IP address.
790 RemoteIPAddress string `json:"remoteIPAddress,omitempty"`
791
792 // RemotePort (optional) Remote port.
793 RemotePort *int `json:"remotePort,omitempty"`
794
795 // FromDiskCache (optional) Specifies that the request was served from the disk cache.
796 FromDiskCache bool `json:"fromDiskCache,omitempty"`
797
798 // FromServiceWorker (optional) Specifies that the request was served from the ServiceWorker.
799 FromServiceWorker bool `json:"fromServiceWorker,omitempty"`
800
801 // FromPrefetchCache (optional) Specifies that the request was served from the prefetch cache.
802 FromPrefetchCache bool `json:"fromPrefetchCache,omitempty"`
803
804 // FromEarlyHints (optional) Specifies that the request was served from the prefetch cache.
805 FromEarlyHints bool `json:"fromEarlyHints,omitempty"`
806
807 // ServiceWorkerRouterInfo (experimental) (optional) Information about how ServiceWorker Static Router API was used. If this
808 // field is set with `matchedSourceType` field, a matching rule is found.
809 // If this field is set without `matchedSource`, no matching rule is found.
810 // Otherwise, the API is not used.
811 ServiceWorkerRouterInfo *NetworkServiceWorkerRouterInfo `json:"serviceWorkerRouterInfo,omitempty"`
812
813 // EncodedDataLength Total number of bytes received for this request so far.
814 EncodedDataLength float64 `json:"encodedDataLength"`
815
816 // Timing (optional) Timing information for the given request.
817 Timing *NetworkResourceTiming `json:"timing,omitempty"`
818
819 // ServiceWorkerResponseSource (optional) Response source of response from ServiceWorker.
820 ServiceWorkerResponseSource NetworkServiceWorkerResponseSource `json:"serviceWorkerResponseSource,omitempty"`
821
822 // ResponseTime (optional) The time at which the returned response was generated.
823 ResponseTime TimeSinceEpoch `json:"responseTime,omitempty"`
824
825 // CacheStorageCacheName (optional) Cache Storage Cache Name.
826 CacheStorageCacheName string `json:"cacheStorageCacheName,omitempty"`
827
828 // Protocol (optional) Protocol used to fetch this request.
829 Protocol string `json:"protocol,omitempty"`
830
831 // AlternateProtocolUsage (experimental) (optional) The reason why Chrome uses a specific transport protocol for HTTP semantics.
832 AlternateProtocolUsage NetworkAlternateProtocolUsage `json:"alternateProtocolUsage,omitempty"`
833
834 // SecurityState Security state of the request resource.
835 SecurityState SecuritySecurityState `json:"securityState"`
836
837 // SecurityDetails (optional) Security details for the request.
838 SecurityDetails *NetworkSecurityDetails `json:"securityDetails,omitempty"`
839}
840
841// NetworkWebSocketRequest WebSocket request data.
842type NetworkWebSocketRequest struct {
843 // Headers HTTP request headers.
844 Headers NetworkHeaders `json:"headers"`
845}
846
847// NetworkWebSocketResponse WebSocket response data.
848type NetworkWebSocketResponse struct {
849 // Status HTTP response status code.
850 Status int `json:"status"`
851
852 // StatusText HTTP response status text.
853 StatusText string `json:"statusText"`
854
855 // Headers HTTP response headers.
856 Headers NetworkHeaders `json:"headers"`
857
858 // HeadersText (optional) HTTP response headers text.
859 HeadersText string `json:"headersText,omitempty"`
860
861 // RequestHeaders (optional) HTTP request headers.
862 RequestHeaders NetworkHeaders `json:"requestHeaders,omitempty"`
863
864 // RequestHeadersText (optional) HTTP request headers text.
865 RequestHeadersText string `json:"requestHeadersText,omitempty"`
866}
867
868// NetworkWebSocketFrame WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.
869type NetworkWebSocketFrame struct {
870 // Opcode WebSocket message opcode.
871 Opcode float64 `json:"opcode"`
872
873 // Mask WebSocket message mask.
874 Mask bool `json:"mask"`
875
876 // PayloadData WebSocket message payload data.
877 // If the opcode is 1, this is a text message and payloadData is a UTF-8 string.
878 // If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data.
879 PayloadData string `json:"payloadData"`
880}
881
882// NetworkCachedResource Information about the cached resource.
883type NetworkCachedResource struct {
884 // URL Resource URL. This is the url of the original network request.
885 URL string `json:"url"`
886
887 // Type of this resource.
888 Type NetworkResourceType `json:"type"`
889
890 // Response (optional) Cached response data.
891 Response *NetworkResponse `json:"response,omitempty"`
892
893 // BodySize Cached response body size.
894 BodySize float64 `json:"bodySize"`
895}
896
897// NetworkInitiatorType enum.
898type NetworkInitiatorType string
899
900const (
901 // NetworkInitiatorTypeParser enum const.
902 NetworkInitiatorTypeParser NetworkInitiatorType = "parser"
903
904 // NetworkInitiatorTypeScript enum const.
905 NetworkInitiatorTypeScript NetworkInitiatorType = "script"
906
907 // NetworkInitiatorTypePreload enum const.
908 NetworkInitiatorTypePreload NetworkInitiatorType = "preload"
909
910 // NetworkInitiatorTypeSignedExchange enum const.
911 NetworkInitiatorTypeSignedExchange NetworkInitiatorType = "SignedExchange"
912
913 // NetworkInitiatorTypePreflight enum const.
914 NetworkInitiatorTypePreflight NetworkInitiatorType = "preflight"
915
916 // NetworkInitiatorTypeOther enum const.
917 NetworkInitiatorTypeOther NetworkInitiatorType = "other"
918)
919
920// NetworkInitiator Information about the request initiator.
921type NetworkInitiator struct {
922 // Type of this initiator.
923 Type NetworkInitiatorType `json:"type"`
924
925 // Stack (optional) Initiator JavaScript stack trace, set for Script only.
926 Stack *RuntimeStackTrace `json:"stack,omitempty"`
927
928 // URL (optional) Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type.
929 URL string `json:"url,omitempty"`
930
931 // LineNumber (optional) Initiator line number, set for Parser type or for Script type (when script is importing
932 // module) (0-based).
933 LineNumber *float64 `json:"lineNumber,omitempty"`
934
935 // ColumnNumber (optional) Initiator column number, set for Parser type or for Script type (when script is importing
936 // module) (0-based).
937 ColumnNumber *float64 `json:"columnNumber,omitempty"`
938
939 // RequestID (optional) Set if another request triggered this request (e.g. preflight).
940 RequestID NetworkRequestID `json:"requestId,omitempty"`
941}
942
943// NetworkCookiePartitionKey (experimental) cookiePartitionKey object
944// The representation of the components of the key that are created by the cookiePartitionKey class contained in net/cookies/cookie_partition_key.h.
945type NetworkCookiePartitionKey struct {
946 // TopLevelSite The site of the top-level URL the browser was visiting at the start
947 // of the request to the endpoint that set the cookie.
948 TopLevelSite string `json:"topLevelSite"`
949
950 // HasCrossSiteAncestor Indicates if the cookie has any ancestors that are cross-site to the topLevelSite.
951 HasCrossSiteAncestor bool `json:"hasCrossSiteAncestor"`
952}
953
954// NetworkCookie Cookie object.
955type NetworkCookie struct {
956 // Name Cookie name.
957 Name string `json:"name"`
958
959 // Value Cookie value.
960 Value string `json:"value"`
961
962 // Domain Cookie domain.
963 Domain string `json:"domain"`
964
965 // Path Cookie path.
966 Path string `json:"path"`
967
968 // Expires Cookie expiration date
969 Expires TimeSinceEpoch `json:"expires"`
970
971 // Size Cookie size.
972 Size int `json:"size"`
973
974 // HTTPOnly True if cookie is http-only.
975 HTTPOnly bool `json:"httpOnly"`
976
977 // Secure True if cookie is secure.
978 Secure bool `json:"secure"`
979
980 // Session True in case of session cookie.
981 Session bool `json:"session"`
982
983 // SameSite (optional) Cookie SameSite type.
984 SameSite NetworkCookieSameSite `json:"sameSite,omitempty"`
985
986 // Priority (experimental) Cookie Priority
987 Priority NetworkCookiePriority `json:"priority"`
988
989 // SameParty (deprecated) (experimental) True if cookie is SameParty.
990 SameParty bool `json:"sameParty"`
991
992 // SourceScheme (experimental) Cookie source scheme type.
993 SourceScheme NetworkCookieSourceScheme `json:"sourceScheme"`
994
995 // SourcePort (experimental) Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.
996 // An unspecified port value allows protocol clients to emulate legacy cookie scope for the port.
997 // This is a temporary ability and it will be removed in the future.
998 SourcePort int `json:"sourcePort"`
999
1000 // PartitionKey (experimental) (optional) Cookie partition key.
1001 PartitionKey *NetworkCookiePartitionKey `json:"partitionKey,omitempty"`
1002
1003 // PartitionKeyOpaque (experimental) (optional) True if cookie partition key is opaque.
1004 PartitionKeyOpaque bool `json:"partitionKeyOpaque,omitempty"`
1005}
1006
1007// NetworkSetCookieBlockedReason (experimental) Types of reasons why a cookie may not be stored from a response.
1008type NetworkSetCookieBlockedReason string
1009
1010const (
1011 // NetworkSetCookieBlockedReasonSecureOnly enum const.
1012 NetworkSetCookieBlockedReasonSecureOnly NetworkSetCookieBlockedReason = "SecureOnly"
1013
1014 // NetworkSetCookieBlockedReasonSameSiteStrict enum const.
1015 NetworkSetCookieBlockedReasonSameSiteStrict NetworkSetCookieBlockedReason = "SameSiteStrict"
1016
1017 // NetworkSetCookieBlockedReasonSameSiteLax enum const.
1018 NetworkSetCookieBlockedReasonSameSiteLax NetworkSetCookieBlockedReason = "SameSiteLax"
1019
1020 // NetworkSetCookieBlockedReasonSameSiteUnspecifiedTreatedAsLax enum const.
1021 NetworkSetCookieBlockedReasonSameSiteUnspecifiedTreatedAsLax NetworkSetCookieBlockedReason = "SameSiteUnspecifiedTreatedAsLax"
1022
1023 // NetworkSetCookieBlockedReasonSameSiteNoneInsecure enum const.
1024 NetworkSetCookieBlockedReasonSameSiteNoneInsecure NetworkSetCookieBlockedReason = "SameSiteNoneInsecure"
1025
1026 // NetworkSetCookieBlockedReasonUserPreferences enum const.
1027 NetworkSetCookieBlockedReasonUserPreferences NetworkSetCookieBlockedReason = "UserPreferences"
1028
1029 // NetworkSetCookieBlockedReasonThirdPartyPhaseout enum const.
1030 NetworkSetCookieBlockedReasonThirdPartyPhaseout NetworkSetCookieBlockedReason = "ThirdPartyPhaseout"
1031
1032 // NetworkSetCookieBlockedReasonThirdPartyBlockedInFirstPartySet enum const.
1033 NetworkSetCookieBlockedReasonThirdPartyBlockedInFirstPartySet NetworkSetCookieBlockedReason = "ThirdPartyBlockedInFirstPartySet"
1034
1035 // NetworkSetCookieBlockedReasonSyntaxError enum const.
1036 NetworkSetCookieBlockedReasonSyntaxError NetworkSetCookieBlockedReason = "SyntaxError"
1037
1038 // NetworkSetCookieBlockedReasonSchemeNotSupported enum const.
1039 NetworkSetCookieBlockedReasonSchemeNotSupported NetworkSetCookieBlockedReason = "SchemeNotSupported"
1040
1041 // NetworkSetCookieBlockedReasonOverwriteSecure enum const.
1042 NetworkSetCookieBlockedReasonOverwriteSecure NetworkSetCookieBlockedReason = "OverwriteSecure"
1043
1044 // NetworkSetCookieBlockedReasonInvalidDomain enum const.
1045 NetworkSetCookieBlockedReasonInvalidDomain NetworkSetCookieBlockedReason = "InvalidDomain"
1046
1047 // NetworkSetCookieBlockedReasonInvalidPrefix enum const.
1048 NetworkSetCookieBlockedReasonInvalidPrefix NetworkSetCookieBlockedReason = "InvalidPrefix"
1049
1050 // NetworkSetCookieBlockedReasonUnknownError enum const.
1051 NetworkSetCookieBlockedReasonUnknownError NetworkSetCookieBlockedReason = "UnknownError"
1052
1053 // NetworkSetCookieBlockedReasonSchemefulSameSiteStrict enum const.
1054 NetworkSetCookieBlockedReasonSchemefulSameSiteStrict NetworkSetCookieBlockedReason = "SchemefulSameSiteStrict"
1055
1056 // NetworkSetCookieBlockedReasonSchemefulSameSiteLax enum const.
1057 NetworkSetCookieBlockedReasonSchemefulSameSiteLax NetworkSetCookieBlockedReason = "SchemefulSameSiteLax"
1058
1059 // NetworkSetCookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax enum const.
1060 NetworkSetCookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax NetworkSetCookieBlockedReason = "SchemefulSameSiteUnspecifiedTreatedAsLax"
1061
1062 // NetworkSetCookieBlockedReasonSamePartyFromCrossPartyContext enum const.
1063 NetworkSetCookieBlockedReasonSamePartyFromCrossPartyContext NetworkSetCookieBlockedReason = "SamePartyFromCrossPartyContext"
1064
1065 // NetworkSetCookieBlockedReasonSamePartyConflictsWithOtherAttributes enum const.
1066 NetworkSetCookieBlockedReasonSamePartyConflictsWithOtherAttributes NetworkSetCookieBlockedReason = "SamePartyConflictsWithOtherAttributes"
1067
1068 // NetworkSetCookieBlockedReasonNameValuePairExceedsMaxSize enum const.
1069 NetworkSetCookieBlockedReasonNameValuePairExceedsMaxSize NetworkSetCookieBlockedReason = "NameValuePairExceedsMaxSize"
1070
1071 // NetworkSetCookieBlockedReasonDisallowedCharacter enum const.
1072 NetworkSetCookieBlockedReasonDisallowedCharacter NetworkSetCookieBlockedReason = "DisallowedCharacter"
1073
1074 // NetworkSetCookieBlockedReasonNoCookieContent enum const.
1075 NetworkSetCookieBlockedReasonNoCookieContent NetworkSetCookieBlockedReason = "NoCookieContent"
1076)
1077
1078// NetworkCookieBlockedReason (experimental) Types of reasons why a cookie may not be sent with a request.
1079type NetworkCookieBlockedReason string
1080
1081const (
1082 // NetworkCookieBlockedReasonSecureOnly enum const.
1083 NetworkCookieBlockedReasonSecureOnly NetworkCookieBlockedReason = "SecureOnly"
1084
1085 // NetworkCookieBlockedReasonNotOnPath enum const.
1086 NetworkCookieBlockedReasonNotOnPath NetworkCookieBlockedReason = "NotOnPath"
1087
1088 // NetworkCookieBlockedReasonDomainMismatch enum const.
1089 NetworkCookieBlockedReasonDomainMismatch NetworkCookieBlockedReason = "DomainMismatch"
1090
1091 // NetworkCookieBlockedReasonSameSiteStrict enum const.
1092 NetworkCookieBlockedReasonSameSiteStrict NetworkCookieBlockedReason = "SameSiteStrict"
1093
1094 // NetworkCookieBlockedReasonSameSiteLax enum const.
1095 NetworkCookieBlockedReasonSameSiteLax NetworkCookieBlockedReason = "SameSiteLax"
1096
1097 // NetworkCookieBlockedReasonSameSiteUnspecifiedTreatedAsLax enum const.
1098 NetworkCookieBlockedReasonSameSiteUnspecifiedTreatedAsLax NetworkCookieBlockedReason = "SameSiteUnspecifiedTreatedAsLax"
1099
1100 // NetworkCookieBlockedReasonSameSiteNoneInsecure enum const.
1101 NetworkCookieBlockedReasonSameSiteNoneInsecure NetworkCookieBlockedReason = "SameSiteNoneInsecure"
1102
1103 // NetworkCookieBlockedReasonUserPreferences enum const.
1104 NetworkCookieBlockedReasonUserPreferences NetworkCookieBlockedReason = "UserPreferences"
1105
1106 // NetworkCookieBlockedReasonThirdPartyPhaseout enum const.
1107 NetworkCookieBlockedReasonThirdPartyPhaseout NetworkCookieBlockedReason = "ThirdPartyPhaseout"
1108
1109 // NetworkCookieBlockedReasonThirdPartyBlockedInFirstPartySet enum const.
1110 NetworkCookieBlockedReasonThirdPartyBlockedInFirstPartySet NetworkCookieBlockedReason = "ThirdPartyBlockedInFirstPartySet"
1111
1112 // NetworkCookieBlockedReasonUnknownError enum const.
1113 NetworkCookieBlockedReasonUnknownError NetworkCookieBlockedReason = "UnknownError"
1114
1115 // NetworkCookieBlockedReasonSchemefulSameSiteStrict enum const.
1116 NetworkCookieBlockedReasonSchemefulSameSiteStrict NetworkCookieBlockedReason = "SchemefulSameSiteStrict"
1117
1118 // NetworkCookieBlockedReasonSchemefulSameSiteLax enum const.
1119 NetworkCookieBlockedReasonSchemefulSameSiteLax NetworkCookieBlockedReason = "SchemefulSameSiteLax"
1120
1121 // NetworkCookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax enum const.
1122 NetworkCookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax NetworkCookieBlockedReason = "SchemefulSameSiteUnspecifiedTreatedAsLax"
1123
1124 // NetworkCookieBlockedReasonSamePartyFromCrossPartyContext enum const.
1125 NetworkCookieBlockedReasonSamePartyFromCrossPartyContext NetworkCookieBlockedReason = "SamePartyFromCrossPartyContext"
1126
1127 // NetworkCookieBlockedReasonNameValuePairExceedsMaxSize enum const.
1128 NetworkCookieBlockedReasonNameValuePairExceedsMaxSize NetworkCookieBlockedReason = "NameValuePairExceedsMaxSize"
1129)
1130
1131// NetworkCookieExemptionReason (experimental) Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.
1132type NetworkCookieExemptionReason string
1133
1134const (
1135 // NetworkCookieExemptionReasonNone enum const.
1136 NetworkCookieExemptionReasonNone NetworkCookieExemptionReason = "None"
1137
1138 // NetworkCookieExemptionReasonUserSetting enum const.
1139 NetworkCookieExemptionReasonUserSetting NetworkCookieExemptionReason = "UserSetting"
1140
1141 // NetworkCookieExemptionReasonTPCDMetadata enum const.
1142 NetworkCookieExemptionReasonTPCDMetadata NetworkCookieExemptionReason = "TPCDMetadata"
1143
1144 // NetworkCookieExemptionReasonTPCDDeprecationTrial enum const.
1145 NetworkCookieExemptionReasonTPCDDeprecationTrial NetworkCookieExemptionReason = "TPCDDeprecationTrial"
1146
1147 // NetworkCookieExemptionReasonTPCDHeuristics enum const.
1148 NetworkCookieExemptionReasonTPCDHeuristics NetworkCookieExemptionReason = "TPCDHeuristics"
1149
1150 // NetworkCookieExemptionReasonEnterprisePolicy enum const.
1151 NetworkCookieExemptionReasonEnterprisePolicy NetworkCookieExemptionReason = "EnterprisePolicy"
1152
1153 // NetworkCookieExemptionReasonStorageAccess enum const.
1154 NetworkCookieExemptionReasonStorageAccess NetworkCookieExemptionReason = "StorageAccess"
1155
1156 // NetworkCookieExemptionReasonTopLevelStorageAccess enum const.
1157 NetworkCookieExemptionReasonTopLevelStorageAccess NetworkCookieExemptionReason = "TopLevelStorageAccess"
1158
1159 // NetworkCookieExemptionReasonCorsOptIn enum const.
1160 NetworkCookieExemptionReasonCorsOptIn NetworkCookieExemptionReason = "CorsOptIn"
1161
1162 // NetworkCookieExemptionReasonScheme enum const.
1163 NetworkCookieExemptionReasonScheme NetworkCookieExemptionReason = "Scheme"
1164)
1165
1166// NetworkBlockedSetCookieWithReason (experimental) A cookie which was not stored from a response with the corresponding reason.
1167type NetworkBlockedSetCookieWithReason struct {
1168 // BlockedReasons The reason(s) this cookie was blocked.
1169 BlockedReasons []NetworkSetCookieBlockedReason `json:"blockedReasons"`
1170
1171 // CookieLine The string representing this individual cookie as it would appear in the header.
1172 // This is not the entire "cookie" or "set-cookie" header which could have multiple cookies.
1173 CookieLine string `json:"cookieLine"`
1174
1175 // Cookie (optional) The cookie object which represents the cookie which was not stored. It is optional because
1176 // sometimes complete cookie information is not available, such as in the case of parsing
1177 // errors.
1178 Cookie *NetworkCookie `json:"cookie,omitempty"`
1179}
1180
1181// NetworkExemptedSetCookieWithReason (experimental) A cookie should have been blocked by 3PCD but is exempted and stored from a response with the
1182// corresponding reason. A cookie could only have at most one exemption reason.
1183type NetworkExemptedSetCookieWithReason struct {
1184 // ExemptionReason The reason the cookie was exempted.
1185 ExemptionReason NetworkCookieExemptionReason `json:"exemptionReason"`
1186
1187 // CookieLine The string representing this individual cookie as it would appear in the header.
1188 CookieLine string `json:"cookieLine"`
1189
1190 // Cookie The cookie object representing the cookie.
1191 Cookie *NetworkCookie `json:"cookie"`
1192}
1193
1194// NetworkAssociatedCookie (experimental) A cookie associated with the request which may or may not be sent with it.
1195// Includes the cookies itself and reasons for blocking or exemption.
1196type NetworkAssociatedCookie struct {
1197 // Cookie The cookie object representing the cookie which was not sent.
1198 Cookie *NetworkCookie `json:"cookie"`
1199
1200 // BlockedReasons The reason(s) the cookie was blocked. If empty means the cookie is included.
1201 BlockedReasons []NetworkCookieBlockedReason `json:"blockedReasons"`
1202
1203 // ExemptionReason (optional) The reason the cookie should have been blocked by 3PCD but is exempted. A cookie could
1204 // only have at most one exemption reason.
1205 ExemptionReason NetworkCookieExemptionReason `json:"exemptionReason,omitempty"`
1206}
1207
1208// NetworkCookieParam Cookie parameter object.
1209type NetworkCookieParam struct {
1210 // Name Cookie name.
1211 Name string `json:"name"`
1212
1213 // Value Cookie value.
1214 Value string `json:"value"`
1215
1216 // URL (optional) The request-URI to associate with the setting of the cookie. This value can affect the
1217 // default domain, path, source port, and source scheme values of the created cookie.
1218 URL string `json:"url,omitempty"`
1219
1220 // Domain (optional) Cookie domain.
1221 Domain string `json:"domain,omitempty"`
1222
1223 // Path (optional) Cookie path.
1224 Path string `json:"path,omitempty"`
1225
1226 // Secure (optional) True if cookie is secure.
1227 Secure bool `json:"secure,omitempty"`
1228
1229 // HTTPOnly (optional) True if cookie is http-only.
1230 HTTPOnly bool `json:"httpOnly,omitempty"`
1231
1232 // SameSite (optional) Cookie SameSite type.
1233 SameSite NetworkCookieSameSite `json:"sameSite,omitempty"`
1234
1235 // Expires (optional) Cookie expiration date, session cookie if not set
1236 Expires TimeSinceEpoch `json:"expires,omitempty"`
1237
1238 // Priority (experimental) (optional) Cookie Priority.
1239 Priority NetworkCookiePriority `json:"priority,omitempty"`
1240
1241 // SameParty (experimental) (optional) True if cookie is SameParty.
1242 SameParty bool `json:"sameParty,omitempty"`
1243
1244 // SourceScheme (experimental) (optional) Cookie source scheme type.
1245 SourceScheme NetworkCookieSourceScheme `json:"sourceScheme,omitempty"`
1246
1247 // SourcePort (experimental) (optional) Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.
1248 // An unspecified port value allows protocol clients to emulate legacy cookie scope for the port.
1249 // This is a temporary ability and it will be removed in the future.
1250 SourcePort *int `json:"sourcePort,omitempty"`
1251
1252 // PartitionKey (experimental) (optional) Cookie partition key. If not set, the cookie will be set as not partitioned.
1253 PartitionKey *NetworkCookiePartitionKey `json:"partitionKey,omitempty"`
1254}
1255
1256// NetworkAuthChallengeSource enum.
1257type NetworkAuthChallengeSource string
1258
1259const (
1260 // NetworkAuthChallengeSourceServer enum const.
1261 NetworkAuthChallengeSourceServer NetworkAuthChallengeSource = "Server"
1262
1263 // NetworkAuthChallengeSourceProxy enum const.
1264 NetworkAuthChallengeSourceProxy NetworkAuthChallengeSource = "Proxy"
1265)
1266
1267// NetworkAuthChallenge (experimental) Authorization challenge for HTTP status code 401 or 407.
1268type NetworkAuthChallenge struct {
1269 // Source (optional) Source of the authentication challenge.
1270 Source NetworkAuthChallengeSource `json:"source,omitempty"`
1271
1272 // Origin of the challenger.
1273 Origin string `json:"origin"`
1274
1275 // Scheme The authentication scheme used, such as basic or digest
1276 Scheme string `json:"scheme"`
1277
1278 // Realm The realm of the challenge. May be empty.
1279 Realm string `json:"realm"`
1280}
1281
1282// NetworkAuthChallengeResponseResponse enum.
1283type NetworkAuthChallengeResponseResponse string
1284
1285const (
1286 // NetworkAuthChallengeResponseResponseDefault enum const.
1287 NetworkAuthChallengeResponseResponseDefault NetworkAuthChallengeResponseResponse = "Default"
1288
1289 // NetworkAuthChallengeResponseResponseCancelAuth enum const.
1290 NetworkAuthChallengeResponseResponseCancelAuth NetworkAuthChallengeResponseResponse = "CancelAuth"
1291
1292 // NetworkAuthChallengeResponseResponseProvideCredentials enum const.
1293 NetworkAuthChallengeResponseResponseProvideCredentials NetworkAuthChallengeResponseResponse = "ProvideCredentials"
1294)
1295
1296// NetworkAuthChallengeResponse (experimental) Response to an AuthChallenge.
1297type NetworkAuthChallengeResponse struct {
1298 // Response The decision on what to do in response to the authorization challenge. Default means
1299 // deferring to the default behavior of the net stack, which will likely either the Cancel
1300 // authentication or display a popup dialog box.
1301 Response NetworkAuthChallengeResponseResponse `json:"response"`
1302
1303 // Username (optional) The username to provide, possibly empty. Should only be set if response is
1304 // ProvideCredentials.
1305 Username string `json:"username,omitempty"`
1306
1307 // Password (optional) The password to provide, possibly empty. Should only be set if response is
1308 // ProvideCredentials.
1309 Password string `json:"password,omitempty"`
1310}
1311
1312// NetworkInterceptionStage (experimental) Stages of the interception to begin intercepting. Request will intercept before the request is
1313// sent. Response will intercept after the response is received.
1314type NetworkInterceptionStage string
1315
1316const (
1317 // NetworkInterceptionStageRequest enum const.
1318 NetworkInterceptionStageRequest NetworkInterceptionStage = "Request"
1319
1320 // NetworkInterceptionStageHeadersReceived enum const.
1321 NetworkInterceptionStageHeadersReceived NetworkInterceptionStage = "HeadersReceived"
1322)
1323
1324// NetworkRequestPattern (experimental) Request pattern for interception.
1325type NetworkRequestPattern struct {
1326 // URLPattern (optional) Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is
1327 // backslash. Omitting is equivalent to `"*"`.
1328 URLPattern string `json:"urlPattern,omitempty"`
1329
1330 // ResourceType (optional) If set, only requests for matching resource types will be intercepted.
1331 ResourceType NetworkResourceType `json:"resourceType,omitempty"`
1332
1333 // InterceptionStage (optional) Stage at which to begin intercepting requests. Default is Request.
1334 InterceptionStage NetworkInterceptionStage `json:"interceptionStage,omitempty"`
1335}
1336
1337// NetworkSignedExchangeSignature (experimental) Information about a signed exchange signature.
1338// https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1
1339type NetworkSignedExchangeSignature struct {
1340 // Label Signed exchange signature label.
1341 Label string `json:"label"`
1342
1343 // Signature The hex string of signed exchange signature.
1344 Signature string `json:"signature"`
1345
1346 // Integrity Signed exchange signature integrity.
1347 Integrity string `json:"integrity"`
1348
1349 // CertURL (optional) Signed exchange signature cert Url.
1350 CertURL string `json:"certUrl,omitempty"`
1351
1352 // CertSha256 (optional) The hex string of signed exchange signature cert sha256.
1353 CertSha256 string `json:"certSha256,omitempty"`
1354
1355 // ValidityURL Signed exchange signature validity Url.
1356 ValidityURL string `json:"validityUrl"`
1357
1358 // Date Signed exchange signature date.
1359 Date int `json:"date"`
1360
1361 // Expires Signed exchange signature expires.
1362 Expires int `json:"expires"`
1363
1364 // Certificates (optional) The encoded certificates.
1365 Certificates []string `json:"certificates,omitempty"`
1366}
1367
1368// NetworkSignedExchangeHeader (experimental) Information about a signed exchange header.
1369// https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation
1370type NetworkSignedExchangeHeader struct {
1371 // RequestURL Signed exchange request URL.
1372 RequestURL string `json:"requestUrl"`
1373
1374 // ResponseCode Signed exchange response code.
1375 ResponseCode int `json:"responseCode"`
1376
1377 // ResponseHeaders Signed exchange response headers.
1378 ResponseHeaders NetworkHeaders `json:"responseHeaders"`
1379
1380 // Signatures Signed exchange response signature.
1381 Signatures []*NetworkSignedExchangeSignature `json:"signatures"`
1382
1383 // HeaderIntegrity Signed exchange header integrity hash in the form of `sha256-<base64-hash-value>`.
1384 HeaderIntegrity string `json:"headerIntegrity"`
1385}
1386
1387// NetworkSignedExchangeErrorField (experimental) Field type for a signed exchange related error.
1388type NetworkSignedExchangeErrorField string
1389
1390const (
1391 // NetworkSignedExchangeErrorFieldSignatureSig enum const.
1392 NetworkSignedExchangeErrorFieldSignatureSig NetworkSignedExchangeErrorField = "signatureSig"
1393
1394 // NetworkSignedExchangeErrorFieldSignatureIntegrity enum const.
1395 NetworkSignedExchangeErrorFieldSignatureIntegrity NetworkSignedExchangeErrorField = "signatureIntegrity"
1396
1397 // NetworkSignedExchangeErrorFieldSignatureCertURL enum const.
1398 NetworkSignedExchangeErrorFieldSignatureCertURL NetworkSignedExchangeErrorField = "signatureCertUrl"
1399
1400 // NetworkSignedExchangeErrorFieldSignatureCertSha256 enum const.
1401 NetworkSignedExchangeErrorFieldSignatureCertSha256 NetworkSignedExchangeErrorField = "signatureCertSha256"
1402
1403 // NetworkSignedExchangeErrorFieldSignatureValidityURL enum const.
1404 NetworkSignedExchangeErrorFieldSignatureValidityURL NetworkSignedExchangeErrorField = "signatureValidityUrl"
1405
1406 // NetworkSignedExchangeErrorFieldSignatureTimestamps enum const.
1407 NetworkSignedExchangeErrorFieldSignatureTimestamps NetworkSignedExchangeErrorField = "signatureTimestamps"
1408)
1409
1410// NetworkSignedExchangeError (experimental) Information about a signed exchange response.
1411type NetworkSignedExchangeError struct {
1412 // Message Error message.
1413 Message string `json:"message"`
1414
1415 // SignatureIndex (optional) The index of the signature which caused the error.
1416 SignatureIndex *int `json:"signatureIndex,omitempty"`
1417
1418 // ErrorField (optional) The field which caused the error.
1419 ErrorField NetworkSignedExchangeErrorField `json:"errorField,omitempty"`
1420}
1421
1422// NetworkSignedExchangeInfo (experimental) Information about a signed exchange response.
1423type NetworkSignedExchangeInfo struct {
1424 // OuterResponse The outer response of signed HTTP exchange which was received from network.
1425 OuterResponse *NetworkResponse `json:"outerResponse"`
1426
1427 // Header (optional) Information about the signed exchange header.
1428 Header *NetworkSignedExchangeHeader `json:"header,omitempty"`
1429
1430 // SecurityDetails (optional) Security details for the signed exchange header.
1431 SecurityDetails *NetworkSecurityDetails `json:"securityDetails,omitempty"`
1432
1433 // Errors (optional) Errors occurred while handling the signed exchange.
1434 Errors []*NetworkSignedExchangeError `json:"errors,omitempty"`
1435}
1436
1437// NetworkContentEncoding (experimental) List of content encodings supported by the backend.
1438type NetworkContentEncoding string
1439
1440const (
1441 // NetworkContentEncodingDeflate enum const.
1442 NetworkContentEncodingDeflate NetworkContentEncoding = "deflate"
1443
1444 // NetworkContentEncodingGzip enum const.
1445 NetworkContentEncodingGzip NetworkContentEncoding = "gzip"
1446
1447 // NetworkContentEncodingBr enum const.
1448 NetworkContentEncodingBr NetworkContentEncoding = "br"
1449
1450 // NetworkContentEncodingZstd enum const.
1451 NetworkContentEncodingZstd NetworkContentEncoding = "zstd"
1452)
1453
1454// NetworkPrivateNetworkRequestPolicy (experimental) ...
1455type NetworkPrivateNetworkRequestPolicy string
1456
1457const (
1458 // NetworkPrivateNetworkRequestPolicyAllow enum const.
1459 NetworkPrivateNetworkRequestPolicyAllow NetworkPrivateNetworkRequestPolicy = "Allow"
1460
1461 // NetworkPrivateNetworkRequestPolicyBlockFromInsecureToMorePrivate enum const.
1462 NetworkPrivateNetworkRequestPolicyBlockFromInsecureToMorePrivate NetworkPrivateNetworkRequestPolicy = "BlockFromInsecureToMorePrivate"
1463
1464 // NetworkPrivateNetworkRequestPolicyWarnFromInsecureToMorePrivate enum const.
1465 NetworkPrivateNetworkRequestPolicyWarnFromInsecureToMorePrivate NetworkPrivateNetworkRequestPolicy = "WarnFromInsecureToMorePrivate"
1466
1467 // NetworkPrivateNetworkRequestPolicyPreflightBlock enum const.
1468 NetworkPrivateNetworkRequestPolicyPreflightBlock NetworkPrivateNetworkRequestPolicy = "PreflightBlock"
1469
1470 // NetworkPrivateNetworkRequestPolicyPreflightWarn enum const.
1471 NetworkPrivateNetworkRequestPolicyPreflightWarn NetworkPrivateNetworkRequestPolicy = "PreflightWarn"
1472)
1473
1474// NetworkIPAddressSpace (experimental) ...
1475type NetworkIPAddressSpace string
1476
1477const (
1478 // NetworkIPAddressSpaceLocal enum const.
1479 NetworkIPAddressSpaceLocal NetworkIPAddressSpace = "Local"
1480
1481 // NetworkIPAddressSpacePrivate enum const.
1482 NetworkIPAddressSpacePrivate NetworkIPAddressSpace = "Private"
1483
1484 // NetworkIPAddressSpacePublic enum const.
1485 NetworkIPAddressSpacePublic NetworkIPAddressSpace = "Public"
1486
1487 // NetworkIPAddressSpaceUnknown enum const.
1488 NetworkIPAddressSpaceUnknown NetworkIPAddressSpace = "Unknown"
1489)
1490
1491// NetworkConnectTiming (experimental) ...
1492type NetworkConnectTiming struct {
1493 // RequestTime Timing's requestTime is a baseline in seconds, while the other numbers are ticks in
1494 // milliseconds relatively to this requestTime. Matches ResourceTiming's requestTime for
1495 // the same request (but not for redirected requests).
1496 RequestTime float64 `json:"requestTime"`
1497}
1498
1499// NetworkClientSecurityState (experimental) ...
1500type NetworkClientSecurityState struct {
1501 // InitiatorIsSecureContext ...
1502 InitiatorIsSecureContext bool `json:"initiatorIsSecureContext"`
1503
1504 // InitiatorIPAddressSpace ...
1505 InitiatorIPAddressSpace NetworkIPAddressSpace `json:"initiatorIPAddressSpace"`
1506
1507 // PrivateNetworkRequestPolicy ...
1508 PrivateNetworkRequestPolicy NetworkPrivateNetworkRequestPolicy `json:"privateNetworkRequestPolicy"`
1509}
1510
1511// NetworkCrossOriginOpenerPolicyValue (experimental) ...
1512type NetworkCrossOriginOpenerPolicyValue string
1513
1514const (
1515 // NetworkCrossOriginOpenerPolicyValueSameOrigin enum const.
1516 NetworkCrossOriginOpenerPolicyValueSameOrigin NetworkCrossOriginOpenerPolicyValue = "SameOrigin"
1517
1518 // NetworkCrossOriginOpenerPolicyValueSameOriginAllowPopups enum const.
1519 NetworkCrossOriginOpenerPolicyValueSameOriginAllowPopups NetworkCrossOriginOpenerPolicyValue = "SameOriginAllowPopups"
1520
1521 // NetworkCrossOriginOpenerPolicyValueRestrictProperties enum const.
1522 NetworkCrossOriginOpenerPolicyValueRestrictProperties NetworkCrossOriginOpenerPolicyValue = "RestrictProperties"
1523
1524 // NetworkCrossOriginOpenerPolicyValueUnsafeNone enum const.
1525 NetworkCrossOriginOpenerPolicyValueUnsafeNone NetworkCrossOriginOpenerPolicyValue = "UnsafeNone"
1526
1527 // NetworkCrossOriginOpenerPolicyValueSameOriginPlusCoep enum const.
1528 NetworkCrossOriginOpenerPolicyValueSameOriginPlusCoep NetworkCrossOriginOpenerPolicyValue = "SameOriginPlusCoep"
1529
1530 // NetworkCrossOriginOpenerPolicyValueRestrictPropertiesPlusCoep enum const.
1531 NetworkCrossOriginOpenerPolicyValueRestrictPropertiesPlusCoep NetworkCrossOriginOpenerPolicyValue = "RestrictPropertiesPlusCoep"
1532)
1533
1534// NetworkCrossOriginOpenerPolicyStatus (experimental) ...
1535type NetworkCrossOriginOpenerPolicyStatus struct {
1536 // Value ...
1537 Value NetworkCrossOriginOpenerPolicyValue `json:"value"`
1538
1539 // ReportOnlyValue ...
1540 ReportOnlyValue NetworkCrossOriginOpenerPolicyValue `json:"reportOnlyValue"`
1541
1542 // ReportingEndpoint (optional) ...
1543 ReportingEndpoint string `json:"reportingEndpoint,omitempty"`
1544
1545 // ReportOnlyReportingEndpoint (optional) ...
1546 ReportOnlyReportingEndpoint string `json:"reportOnlyReportingEndpoint,omitempty"`
1547}
1548
1549// NetworkCrossOriginEmbedderPolicyValue (experimental) ...
1550type NetworkCrossOriginEmbedderPolicyValue string
1551
1552const (
1553 // NetworkCrossOriginEmbedderPolicyValueNone enum const.
1554 NetworkCrossOriginEmbedderPolicyValueNone NetworkCrossOriginEmbedderPolicyValue = "None"
1555
1556 // NetworkCrossOriginEmbedderPolicyValueCredentialless enum const.
1557 NetworkCrossOriginEmbedderPolicyValueCredentialless NetworkCrossOriginEmbedderPolicyValue = "Credentialless"
1558
1559 // NetworkCrossOriginEmbedderPolicyValueRequireCorp enum const.
1560 NetworkCrossOriginEmbedderPolicyValueRequireCorp NetworkCrossOriginEmbedderPolicyValue = "RequireCorp"
1561)
1562
1563// NetworkCrossOriginEmbedderPolicyStatus (experimental) ...
1564type NetworkCrossOriginEmbedderPolicyStatus struct {
1565 // Value ...
1566 Value NetworkCrossOriginEmbedderPolicyValue `json:"value"`
1567
1568 // ReportOnlyValue ...
1569 ReportOnlyValue NetworkCrossOriginEmbedderPolicyValue `json:"reportOnlyValue"`
1570
1571 // ReportingEndpoint (optional) ...
1572 ReportingEndpoint string `json:"reportingEndpoint,omitempty"`
1573
1574 // ReportOnlyReportingEndpoint (optional) ...
1575 ReportOnlyReportingEndpoint string `json:"reportOnlyReportingEndpoint,omitempty"`
1576}
1577
1578// NetworkContentSecurityPolicySource (experimental) ...
1579type NetworkContentSecurityPolicySource string
1580
1581const (
1582 // NetworkContentSecurityPolicySourceHTTP enum const.
1583 NetworkContentSecurityPolicySourceHTTP NetworkContentSecurityPolicySource = "HTTP"
1584
1585 // NetworkContentSecurityPolicySourceMeta enum const.
1586 NetworkContentSecurityPolicySourceMeta NetworkContentSecurityPolicySource = "Meta"
1587)
1588
1589// NetworkContentSecurityPolicyStatus (experimental) ...
1590type NetworkContentSecurityPolicyStatus struct {
1591 // EffectiveDirectives ...
1592 EffectiveDirectives string `json:"effectiveDirectives"`
1593
1594 // IsEnforced ...
1595 IsEnforced bool `json:"isEnforced"`
1596
1597 // Source ...
1598 Source NetworkContentSecurityPolicySource `json:"source"`
1599}
1600
1601// NetworkSecurityIsolationStatus (experimental) ...
1602type NetworkSecurityIsolationStatus struct {
1603 // Coop (optional) ...
1604 Coop *NetworkCrossOriginOpenerPolicyStatus `json:"coop,omitempty"`
1605
1606 // Coep (optional) ...
1607 Coep *NetworkCrossOriginEmbedderPolicyStatus `json:"coep,omitempty"`
1608
1609 // Csp (optional) ...
1610 Csp []*NetworkContentSecurityPolicyStatus `json:"csp,omitempty"`
1611}
1612
1613// NetworkReportStatus (experimental) The status of a Reporting API report.
1614type NetworkReportStatus string
1615
1616const (
1617 // NetworkReportStatusQueued enum const.
1618 NetworkReportStatusQueued NetworkReportStatus = "Queued"
1619
1620 // NetworkReportStatusPending enum const.
1621 NetworkReportStatusPending NetworkReportStatus = "Pending"
1622
1623 // NetworkReportStatusMarkedForRemoval enum const.
1624 NetworkReportStatusMarkedForRemoval NetworkReportStatus = "MarkedForRemoval"
1625
1626 // NetworkReportStatusSuccess enum const.
1627 NetworkReportStatusSuccess NetworkReportStatus = "Success"
1628)
1629
1630// NetworkReportID (experimental) ...
1631type NetworkReportID string
1632
1633// NetworkReportingAPIReport (experimental) An object representing a report generated by the Reporting API.
1634type NetworkReportingAPIReport struct {
1635 // ID ...
1636 ID NetworkReportID `json:"id"`
1637
1638 // InitiatorURL The URL of the document that triggered the report.
1639 InitiatorURL string `json:"initiatorUrl"`
1640
1641 // Destination The name of the endpoint group that should be used to deliver the report.
1642 Destination string `json:"destination"`
1643
1644 // Type The type of the report (specifies the set of data that is contained in the report body).
1645 Type string `json:"type"`
1646
1647 // Timestamp When the report was generated.
1648 Timestamp TimeSinceEpoch `json:"timestamp"`
1649
1650 // Depth How many uploads deep the related request was.
1651 Depth int `json:"depth"`
1652
1653 // CompletedAttempts The number of delivery attempts made so far, not including an active attempt.
1654 CompletedAttempts int `json:"completedAttempts"`
1655
1656 // Body ...
1657 Body map[string]gson.JSON `json:"body"`
1658
1659 // Status ...
1660 Status NetworkReportStatus `json:"status"`
1661}
1662
1663// NetworkReportingAPIEndpoint (experimental) ...
1664type NetworkReportingAPIEndpoint struct {
1665 // URL The URL of the endpoint to which reports may be delivered.
1666 URL string `json:"url"`
1667
1668 // GroupName Name of the endpoint group.
1669 GroupName string `json:"groupName"`
1670}
1671
1672// NetworkLoadNetworkResourcePageResult (experimental) An object providing the result of a network resource load.
1673type NetworkLoadNetworkResourcePageResult struct {
1674 // Success ...
1675 Success bool `json:"success"`
1676
1677 // NetError (optional) Optional values used for error reporting.
1678 NetError *float64 `json:"netError,omitempty"`
1679
1680 // NetErrorName (optional) ...
1681 NetErrorName string `json:"netErrorName,omitempty"`
1682
1683 // HTTPStatusCode (optional) ...
1684 HTTPStatusCode *float64 `json:"httpStatusCode,omitempty"`
1685
1686 // Stream (optional) If successful, one of the following two fields holds the result.
1687 Stream IOStreamHandle `json:"stream,omitempty"`
1688
1689 // Headers (optional) Response headers.
1690 Headers NetworkHeaders `json:"headers,omitempty"`
1691}
1692
1693// NetworkLoadNetworkResourceOptions (experimental) An options object that may be extended later to better support CORS,
1694// CORB and streaming.
1695type NetworkLoadNetworkResourceOptions struct {
1696 // DisableCache ...
1697 DisableCache bool `json:"disableCache"`
1698
1699 // IncludeCredentials ...
1700 IncludeCredentials bool `json:"includeCredentials"`
1701}
1702
1703// NetworkSetAcceptedEncodings (experimental) Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.
1704type NetworkSetAcceptedEncodings struct {
1705 // Encodings List of accepted content encodings.
1706 Encodings []NetworkContentEncoding `json:"encodings"`
1707}
1708
1709// ProtoReq name.
1710func (m NetworkSetAcceptedEncodings) ProtoReq() string { return "Network.setAcceptedEncodings" }
1711
1712// Call sends the request.
1713func (m NetworkSetAcceptedEncodings) Call(c Client) error {
1714 return call(m.ProtoReq(), m, nil, c)
1715}
1716
1717// NetworkClearAcceptedEncodingsOverride (experimental) Clears accepted encodings set by setAcceptedEncodings.
1718type NetworkClearAcceptedEncodingsOverride struct{}
1719
1720// ProtoReq name.
1721func (m NetworkClearAcceptedEncodingsOverride) ProtoReq() string {
1722 return "Network.clearAcceptedEncodingsOverride"
1723}
1724
1725// Call sends the request.
1726func (m NetworkClearAcceptedEncodingsOverride) Call(c Client) error {
1727 return call(m.ProtoReq(), m, nil, c)
1728}
1729
1730// NetworkCanClearBrowserCache (deprecated) Tells whether clearing browser cache is supported.
1731type NetworkCanClearBrowserCache struct{}
1732
1733// ProtoReq name.
1734func (m NetworkCanClearBrowserCache) ProtoReq() string { return "Network.canClearBrowserCache" }
1735
1736// Call the request.
1737func (m NetworkCanClearBrowserCache) Call(c Client) (*NetworkCanClearBrowserCacheResult, error) {
1738 var res NetworkCanClearBrowserCacheResult
1739 return &res, call(m.ProtoReq(), m, &res, c)
1740}
1741
1742// NetworkCanClearBrowserCacheResult (deprecated) ...
1743type NetworkCanClearBrowserCacheResult struct {
1744 // Result True if browser cache can be cleared.
1745 Result bool `json:"result"`
1746}
1747
1748// NetworkCanClearBrowserCookies (deprecated) Tells whether clearing browser cookies is supported.
1749type NetworkCanClearBrowserCookies struct{}
1750
1751// ProtoReq name.
1752func (m NetworkCanClearBrowserCookies) ProtoReq() string { return "Network.canClearBrowserCookies" }
1753
1754// Call the request.
1755func (m NetworkCanClearBrowserCookies) Call(c Client) (*NetworkCanClearBrowserCookiesResult, error) {
1756 var res NetworkCanClearBrowserCookiesResult
1757 return &res, call(m.ProtoReq(), m, &res, c)
1758}
1759
1760// NetworkCanClearBrowserCookiesResult (deprecated) ...
1761type NetworkCanClearBrowserCookiesResult struct {
1762 // Result True if browser cookies can be cleared.
1763 Result bool `json:"result"`
1764}
1765
1766// NetworkCanEmulateNetworkConditions (deprecated) Tells whether emulation of network conditions is supported.
1767type NetworkCanEmulateNetworkConditions struct{}
1768
1769// ProtoReq name.
1770func (m NetworkCanEmulateNetworkConditions) ProtoReq() string {
1771 return "Network.canEmulateNetworkConditions"
1772}
1773
1774// Call the request.
1775func (m NetworkCanEmulateNetworkConditions) Call(c Client) (*NetworkCanEmulateNetworkConditionsResult, error) {
1776 var res NetworkCanEmulateNetworkConditionsResult
1777 return &res, call(m.ProtoReq(), m, &res, c)
1778}
1779
1780// NetworkCanEmulateNetworkConditionsResult (deprecated) ...
1781type NetworkCanEmulateNetworkConditionsResult struct {
1782 // Result True if emulation of network conditions is supported.
1783 Result bool `json:"result"`
1784}
1785
1786// NetworkClearBrowserCache Clears browser cache.
1787type NetworkClearBrowserCache struct{}
1788
1789// ProtoReq name.
1790func (m NetworkClearBrowserCache) ProtoReq() string { return "Network.clearBrowserCache" }
1791
1792// Call sends the request.
1793func (m NetworkClearBrowserCache) Call(c Client) error {
1794 return call(m.ProtoReq(), m, nil, c)
1795}
1796
1797// NetworkClearBrowserCookies Clears browser cookies.
1798type NetworkClearBrowserCookies struct{}
1799
1800// ProtoReq name.
1801func (m NetworkClearBrowserCookies) ProtoReq() string { return "Network.clearBrowserCookies" }
1802
1803// Call sends the request.
1804func (m NetworkClearBrowserCookies) Call(c Client) error {
1805 return call(m.ProtoReq(), m, nil, c)
1806}
1807
1808// NetworkContinueInterceptedRequest (deprecated) (experimental) Response to Network.requestIntercepted which either modifies the request to continue with any
1809// modifications, or blocks it, or completes it with the provided response bytes. If a network
1810// fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted
1811// event will be sent with the same InterceptionId.
1812// Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.
1813type NetworkContinueInterceptedRequest struct {
1814 // InterceptionID ...
1815 InterceptionID NetworkInterceptionID `json:"interceptionId"`
1816
1817 // ErrorReason (optional) If set this causes the request to fail with the given reason. Passing `Aborted` for requests
1818 // marked with `isNavigationRequest` also cancels the navigation. Must not be set in response
1819 // to an authChallenge.
1820 ErrorReason NetworkErrorReason `json:"errorReason,omitempty"`
1821
1822 // RawResponse (optional) If set the requests completes using with the provided base64 encoded raw response, including
1823 // HTTP status line and headers etc... Must not be set in response to an authChallenge.
1824 RawResponse []byte `json:"rawResponse,omitempty"`
1825
1826 // URL (optional) If set the request url will be modified in a way that's not observable by page. Must not be
1827 // set in response to an authChallenge.
1828 URL string `json:"url,omitempty"`
1829
1830 // Method (optional) If set this allows the request method to be overridden. Must not be set in response to an
1831 // authChallenge.
1832 Method string `json:"method,omitempty"`
1833
1834 // PostData (optional) If set this allows postData to be set. Must not be set in response to an authChallenge.
1835 PostData string `json:"postData,omitempty"`
1836
1837 // Headers (optional) If set this allows the request headers to be changed. Must not be set in response to an
1838 // authChallenge.
1839 Headers NetworkHeaders `json:"headers,omitempty"`
1840
1841 // AuthChallengeResponse (optional) Response to a requestIntercepted with an authChallenge. Must not be set otherwise.
1842 AuthChallengeResponse *NetworkAuthChallengeResponse `json:"authChallengeResponse,omitempty"`
1843}
1844
1845// ProtoReq name.
1846func (m NetworkContinueInterceptedRequest) ProtoReq() string {
1847 return "Network.continueInterceptedRequest"
1848}
1849
1850// Call sends the request.
1851func (m NetworkContinueInterceptedRequest) Call(c Client) error {
1852 return call(m.ProtoReq(), m, nil, c)
1853}
1854
1855// NetworkDeleteCookies Deletes browser cookies with matching name and url or domain/path/partitionKey pair.
1856type NetworkDeleteCookies struct {
1857 // Name of the cookies to remove.
1858 Name string `json:"name"`
1859
1860 // URL (optional) If specified, deletes all the cookies with the given name where domain and path match
1861 // provided URL.
1862 URL string `json:"url,omitempty"`
1863
1864 // Domain (optional) If specified, deletes only cookies with the exact domain.
1865 Domain string `json:"domain,omitempty"`
1866
1867 // Path (optional) If specified, deletes only cookies with the exact path.
1868 Path string `json:"path,omitempty"`
1869
1870 // PartitionKey (experimental) (optional) If specified, deletes only cookies with the the given name and partitionKey where
1871 // all partition key attributes match the cookie partition key attribute.
1872 PartitionKey *NetworkCookiePartitionKey `json:"partitionKey,omitempty"`
1873}
1874
1875// ProtoReq name.
1876func (m NetworkDeleteCookies) ProtoReq() string { return "Network.deleteCookies" }
1877
1878// Call sends the request.
1879func (m NetworkDeleteCookies) Call(c Client) error {
1880 return call(m.ProtoReq(), m, nil, c)
1881}
1882
1883// NetworkDisable Disables network tracking, prevents network events from being sent to the client.
1884type NetworkDisable struct{}
1885
1886// ProtoReq name.
1887func (m NetworkDisable) ProtoReq() string { return "Network.disable" }
1888
1889// Call sends the request.
1890func (m NetworkDisable) Call(c Client) error {
1891 return call(m.ProtoReq(), m, nil, c)
1892}
1893
1894// NetworkEmulateNetworkConditions Activates emulation of network conditions.
1895type NetworkEmulateNetworkConditions struct {
1896 // Offline True to emulate internet disconnection.
1897 Offline bool `json:"offline"`
1898
1899 // Latency Minimum latency from request sent to response headers received (ms).
1900 Latency float64 `json:"latency"`
1901
1902 // DownloadThroughput Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
1903 DownloadThroughput float64 `json:"downloadThroughput"`
1904
1905 // UploadThroughput Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
1906 UploadThroughput float64 `json:"uploadThroughput"`
1907
1908 // ConnectionType (optional) Connection type if known.
1909 ConnectionType NetworkConnectionType `json:"connectionType,omitempty"`
1910
1911 // PacketLoss (experimental) (optional) WebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets.
1912 PacketLoss *float64 `json:"packetLoss,omitempty"`
1913
1914 // PacketQueueLength (experimental) (optional) WebRTC packet queue length (packet). 0 removes any queue length limitations.
1915 PacketQueueLength *int `json:"packetQueueLength,omitempty"`
1916
1917 // PacketReordering (experimental) (optional) WebRTC packetReordering feature.
1918 PacketReordering bool `json:"packetReordering,omitempty"`
1919}
1920
1921// ProtoReq name.
1922func (m NetworkEmulateNetworkConditions) ProtoReq() string { return "Network.emulateNetworkConditions" }
1923
1924// Call sends the request.
1925func (m NetworkEmulateNetworkConditions) Call(c Client) error {
1926 return call(m.ProtoReq(), m, nil, c)
1927}
1928
1929// NetworkEnable Enables network tracking, network events will now be delivered to the client.
1930type NetworkEnable struct {
1931 // MaxTotalBufferSize (experimental) (optional) Buffer size in bytes to use when preserving network payloads (XHRs, etc).
1932 MaxTotalBufferSize *int `json:"maxTotalBufferSize,omitempty"`
1933
1934 // MaxResourceBufferSize (experimental) (optional) Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).
1935 MaxResourceBufferSize *int `json:"maxResourceBufferSize,omitempty"`
1936
1937 // MaxPostDataSize (optional) Longest post body size (in bytes) that would be included in requestWillBeSent notification
1938 MaxPostDataSize *int `json:"maxPostDataSize,omitempty"`
1939}
1940
1941// ProtoReq name.
1942func (m NetworkEnable) ProtoReq() string { return "Network.enable" }
1943
1944// Call sends the request.
1945func (m NetworkEnable) Call(c Client) error {
1946 return call(m.ProtoReq(), m, nil, c)
1947}
1948
1949// NetworkGetAllCookies (deprecated) Returns all browser cookies. Depending on the backend support, will return detailed cookie
1950// information in the `cookies` field.
1951// Deprecated. Use Storage.getCookies instead.
1952type NetworkGetAllCookies struct{}
1953
1954// ProtoReq name.
1955func (m NetworkGetAllCookies) ProtoReq() string { return "Network.getAllCookies" }
1956
1957// Call the request.
1958func (m NetworkGetAllCookies) Call(c Client) (*NetworkGetAllCookiesResult, error) {
1959 var res NetworkGetAllCookiesResult
1960 return &res, call(m.ProtoReq(), m, &res, c)
1961}
1962
1963// NetworkGetAllCookiesResult (deprecated) ...
1964type NetworkGetAllCookiesResult struct {
1965 // Cookies Array of cookie objects.
1966 Cookies []*NetworkCookie `json:"cookies"`
1967}
1968
1969// NetworkGetCertificate (experimental) Returns the DER-encoded certificate.
1970type NetworkGetCertificate struct {
1971 // Origin to get certificate for.
1972 Origin string `json:"origin"`
1973}
1974
1975// ProtoReq name.
1976func (m NetworkGetCertificate) ProtoReq() string { return "Network.getCertificate" }
1977
1978// Call the request.
1979func (m NetworkGetCertificate) Call(c Client) (*NetworkGetCertificateResult, error) {
1980 var res NetworkGetCertificateResult
1981 return &res, call(m.ProtoReq(), m, &res, c)
1982}
1983
1984// NetworkGetCertificateResult (experimental) ...
1985type NetworkGetCertificateResult struct {
1986 // TableNames ...
1987 TableNames []string `json:"tableNames"`
1988}
1989
1990// NetworkGetCookies Returns all browser cookies for the current URL. Depending on the backend support, will return
1991// detailed cookie information in the `cookies` field.
1992type NetworkGetCookies struct {
1993 // Urls (optional) The list of URLs for which applicable cookies will be fetched.
1994 // If not specified, it's assumed to be set to the list containing
1995 // the URLs of the page and all of its subframes.
1996 Urls []string `json:"urls,omitempty"`
1997}
1998
1999// ProtoReq name.
2000func (m NetworkGetCookies) ProtoReq() string { return "Network.getCookies" }
2001
2002// Call the request.
2003func (m NetworkGetCookies) Call(c Client) (*NetworkGetCookiesResult, error) {
2004 var res NetworkGetCookiesResult
2005 return &res, call(m.ProtoReq(), m, &res, c)
2006}
2007
2008// NetworkGetCookiesResult ...
2009type NetworkGetCookiesResult struct {
2010 // Cookies Array of cookie objects.
2011 Cookies []*NetworkCookie `json:"cookies"`
2012}
2013
2014// NetworkGetResponseBody Returns content served for the given request.
2015type NetworkGetResponseBody struct {
2016 // RequestID Identifier of the network request to get content for.
2017 RequestID NetworkRequestID `json:"requestId"`
2018}
2019
2020// ProtoReq name.
2021func (m NetworkGetResponseBody) ProtoReq() string { return "Network.getResponseBody" }
2022
2023// Call the request.
2024func (m NetworkGetResponseBody) Call(c Client) (*NetworkGetResponseBodyResult, error) {
2025 var res NetworkGetResponseBodyResult
2026 return &res, call(m.ProtoReq(), m, &res, c)
2027}
2028
2029// NetworkGetResponseBodyResult ...
2030type NetworkGetResponseBodyResult struct {
2031 // Body Response body.
2032 Body string `json:"body"`
2033
2034 // Base64Encoded True, if content was sent as base64.
2035 Base64Encoded bool `json:"base64Encoded"`
2036}
2037
2038// NetworkGetRequestPostData Returns post data sent with the request. Returns an error when no data was sent with the request.
2039type NetworkGetRequestPostData struct {
2040 // RequestID Identifier of the network request to get content for.
2041 RequestID NetworkRequestID `json:"requestId"`
2042}
2043
2044// ProtoReq name.
2045func (m NetworkGetRequestPostData) ProtoReq() string { return "Network.getRequestPostData" }
2046
2047// Call the request.
2048func (m NetworkGetRequestPostData) Call(c Client) (*NetworkGetRequestPostDataResult, error) {
2049 var res NetworkGetRequestPostDataResult
2050 return &res, call(m.ProtoReq(), m, &res, c)
2051}
2052
2053// NetworkGetRequestPostDataResult ...
2054type NetworkGetRequestPostDataResult struct {
2055 // PostData Request body string, omitting files from multipart requests
2056 PostData string `json:"postData"`
2057}
2058
2059// NetworkGetResponseBodyForInterception (experimental) Returns content served for the given currently intercepted request.
2060type NetworkGetResponseBodyForInterception struct {
2061 // InterceptionID Identifier for the intercepted request to get body for.
2062 InterceptionID NetworkInterceptionID `json:"interceptionId"`
2063}
2064
2065// ProtoReq name.
2066func (m NetworkGetResponseBodyForInterception) ProtoReq() string {
2067 return "Network.getResponseBodyForInterception"
2068}
2069
2070// Call the request.
2071func (m NetworkGetResponseBodyForInterception) Call(c Client) (*NetworkGetResponseBodyForInterceptionResult, error) {
2072 var res NetworkGetResponseBodyForInterceptionResult
2073 return &res, call(m.ProtoReq(), m, &res, c)
2074}
2075
2076// NetworkGetResponseBodyForInterceptionResult (experimental) ...
2077type NetworkGetResponseBodyForInterceptionResult struct {
2078 // Body Response body.
2079 Body string `json:"body"`
2080
2081 // Base64Encoded True, if content was sent as base64.
2082 Base64Encoded bool `json:"base64Encoded"`
2083}
2084
2085// NetworkTakeResponseBodyForInterceptionAsStream (experimental) Returns a handle to the stream representing the response body. Note that after this command,
2086// the intercepted request can't be continued as is -- you either need to cancel it or to provide
2087// the response body. The stream only supports sequential read, IO.read will fail if the position
2088// is specified.
2089type NetworkTakeResponseBodyForInterceptionAsStream struct {
2090 // InterceptionID ...
2091 InterceptionID NetworkInterceptionID `json:"interceptionId"`
2092}
2093
2094// ProtoReq name.
2095func (m NetworkTakeResponseBodyForInterceptionAsStream) ProtoReq() string {
2096 return "Network.takeResponseBodyForInterceptionAsStream"
2097}
2098
2099// Call the request.
2100func (m NetworkTakeResponseBodyForInterceptionAsStream) Call(c Client) (*NetworkTakeResponseBodyForInterceptionAsStreamResult, error) {
2101 var res NetworkTakeResponseBodyForInterceptionAsStreamResult
2102 return &res, call(m.ProtoReq(), m, &res, c)
2103}
2104
2105// NetworkTakeResponseBodyForInterceptionAsStreamResult (experimental) ...
2106type NetworkTakeResponseBodyForInterceptionAsStreamResult struct {
2107 // Stream ...
2108 Stream IOStreamHandle `json:"stream"`
2109}
2110
2111// NetworkReplayXHR (experimental) This method sends a new XMLHttpRequest which is identical to the original one. The following
2112// parameters should be identical: method, url, async, request body, extra headers, withCredentials
2113// attribute, user, password.
2114type NetworkReplayXHR struct {
2115 // RequestID Identifier of XHR to replay.
2116 RequestID NetworkRequestID `json:"requestId"`
2117}
2118
2119// ProtoReq name.
2120func (m NetworkReplayXHR) ProtoReq() string { return "Network.replayXHR" }
2121
2122// Call sends the request.
2123func (m NetworkReplayXHR) Call(c Client) error {
2124 return call(m.ProtoReq(), m, nil, c)
2125}
2126
2127// NetworkSearchInResponseBody (experimental) Searches for given string in response content.
2128type NetworkSearchInResponseBody struct {
2129 // RequestID Identifier of the network response to search.
2130 RequestID NetworkRequestID `json:"requestId"`
2131
2132 // Query String to search for.
2133 Query string `json:"query"`
2134
2135 // CaseSensitive (optional) If true, search is case sensitive.
2136 CaseSensitive bool `json:"caseSensitive,omitempty"`
2137
2138 // IsRegex (optional) If true, treats string parameter as regex.
2139 IsRegex bool `json:"isRegex,omitempty"`
2140}
2141
2142// ProtoReq name.
2143func (m NetworkSearchInResponseBody) ProtoReq() string { return "Network.searchInResponseBody" }
2144
2145// Call the request.
2146func (m NetworkSearchInResponseBody) Call(c Client) (*NetworkSearchInResponseBodyResult, error) {
2147 var res NetworkSearchInResponseBodyResult
2148 return &res, call(m.ProtoReq(), m, &res, c)
2149}
2150
2151// NetworkSearchInResponseBodyResult (experimental) ...
2152type NetworkSearchInResponseBodyResult struct {
2153 // Result List of search matches.
2154 Result []*DebuggerSearchMatch `json:"result"`
2155}
2156
2157// NetworkSetBlockedURLs (experimental) Blocks URLs from loading.
2158type NetworkSetBlockedURLs struct {
2159 // Urls URL patterns to block. Wildcards ('*') are allowed.
2160 Urls []string `json:"urls"`
2161}
2162
2163// ProtoReq name.
2164func (m NetworkSetBlockedURLs) ProtoReq() string { return "Network.setBlockedURLs" }
2165
2166// Call sends the request.
2167func (m NetworkSetBlockedURLs) Call(c Client) error {
2168 return call(m.ProtoReq(), m, nil, c)
2169}
2170
2171// NetworkSetBypassServiceWorker Toggles ignoring of service worker for each request.
2172type NetworkSetBypassServiceWorker struct {
2173 // Bypass service worker and load from network.
2174 Bypass bool `json:"bypass"`
2175}
2176
2177// ProtoReq name.
2178func (m NetworkSetBypassServiceWorker) ProtoReq() string { return "Network.setBypassServiceWorker" }
2179
2180// Call sends the request.
2181func (m NetworkSetBypassServiceWorker) Call(c Client) error {
2182 return call(m.ProtoReq(), m, nil, c)
2183}
2184
2185// NetworkSetCacheDisabled Toggles ignoring cache for each request. If `true`, cache will not be used.
2186type NetworkSetCacheDisabled struct {
2187 // CacheDisabled Cache disabled state.
2188 CacheDisabled bool `json:"cacheDisabled"`
2189}
2190
2191// ProtoReq name.
2192func (m NetworkSetCacheDisabled) ProtoReq() string { return "Network.setCacheDisabled" }
2193
2194// Call sends the request.
2195func (m NetworkSetCacheDisabled) Call(c Client) error {
2196 return call(m.ProtoReq(), m, nil, c)
2197}
2198
2199// NetworkSetCookie Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
2200type NetworkSetCookie struct {
2201 // Name Cookie name.
2202 Name string `json:"name"`
2203
2204 // Value Cookie value.
2205 Value string `json:"value"`
2206
2207 // URL (optional) The request-URI to associate with the setting of the cookie. This value can affect the
2208 // default domain, path, source port, and source scheme values of the created cookie.
2209 URL string `json:"url,omitempty"`
2210
2211 // Domain (optional) Cookie domain.
2212 Domain string `json:"domain,omitempty"`
2213
2214 // Path (optional) Cookie path.
2215 Path string `json:"path,omitempty"`
2216
2217 // Secure (optional) True if cookie is secure.
2218 Secure bool `json:"secure,omitempty"`
2219
2220 // HTTPOnly (optional) True if cookie is http-only.
2221 HTTPOnly bool `json:"httpOnly,omitempty"`
2222
2223 // SameSite (optional) Cookie SameSite type.
2224 SameSite NetworkCookieSameSite `json:"sameSite,omitempty"`
2225
2226 // Expires (optional) Cookie expiration date, session cookie if not set
2227 Expires TimeSinceEpoch `json:"expires,omitempty"`
2228
2229 // Priority (experimental) (optional) Cookie Priority type.
2230 Priority NetworkCookiePriority `json:"priority,omitempty"`
2231
2232 // SameParty (experimental) (optional) True if cookie is SameParty.
2233 SameParty bool `json:"sameParty,omitempty"`
2234
2235 // SourceScheme (experimental) (optional) Cookie source scheme type.
2236 SourceScheme NetworkCookieSourceScheme `json:"sourceScheme,omitempty"`
2237
2238 // SourcePort (experimental) (optional) Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.
2239 // An unspecified port value allows protocol clients to emulate legacy cookie scope for the port.
2240 // This is a temporary ability and it will be removed in the future.
2241 SourcePort *int `json:"sourcePort,omitempty"`
2242
2243 // PartitionKey (experimental) (optional) Cookie partition key. If not set, the cookie will be set as not partitioned.
2244 PartitionKey *NetworkCookiePartitionKey `json:"partitionKey,omitempty"`
2245}
2246
2247// ProtoReq name.
2248func (m NetworkSetCookie) ProtoReq() string { return "Network.setCookie" }
2249
2250// Call the request.
2251func (m NetworkSetCookie) Call(c Client) (*NetworkSetCookieResult, error) {
2252 var res NetworkSetCookieResult
2253 return &res, call(m.ProtoReq(), m, &res, c)
2254}
2255
2256// NetworkSetCookieResult ...
2257type NetworkSetCookieResult struct {
2258 // Success (deprecated) Always set to true. If an error occurs, the response indicates protocol error.
2259 Success bool `json:"success"`
2260}
2261
2262// NetworkSetCookies Sets given cookies.
2263type NetworkSetCookies struct {
2264 // Cookies to be set.
2265 Cookies []*NetworkCookieParam `json:"cookies"`
2266}
2267
2268// ProtoReq name.
2269func (m NetworkSetCookies) ProtoReq() string { return "Network.setCookies" }
2270
2271// Call sends the request.
2272func (m NetworkSetCookies) Call(c Client) error {
2273 return call(m.ProtoReq(), m, nil, c)
2274}
2275
2276// NetworkSetExtraHTTPHeaders Specifies whether to always send extra HTTP headers with the requests from this page.
2277type NetworkSetExtraHTTPHeaders struct {
2278 // Headers Map with extra HTTP headers.
2279 Headers NetworkHeaders `json:"headers"`
2280}
2281
2282// ProtoReq name.
2283func (m NetworkSetExtraHTTPHeaders) ProtoReq() string { return "Network.setExtraHTTPHeaders" }
2284
2285// Call sends the request.
2286func (m NetworkSetExtraHTTPHeaders) Call(c Client) error {
2287 return call(m.ProtoReq(), m, nil, c)
2288}
2289
2290// NetworkSetAttachDebugStack (experimental) Specifies whether to attach a page script stack id in requests.
2291type NetworkSetAttachDebugStack struct {
2292 // Enabled Whether to attach a page script stack for debugging purpose.
2293 Enabled bool `json:"enabled"`
2294}
2295
2296// ProtoReq name.
2297func (m NetworkSetAttachDebugStack) ProtoReq() string { return "Network.setAttachDebugStack" }
2298
2299// Call sends the request.
2300func (m NetworkSetAttachDebugStack) Call(c Client) error {
2301 return call(m.ProtoReq(), m, nil, c)
2302}
2303
2304// NetworkSetRequestInterception (deprecated) (experimental) Sets the requests to intercept that match the provided patterns and optionally resource types.
2305// Deprecated, please use Fetch.enable instead.
2306type NetworkSetRequestInterception struct {
2307 // Patterns Requests matching any of these patterns will be forwarded and wait for the corresponding
2308 // continueInterceptedRequest call.
2309 Patterns []*NetworkRequestPattern `json:"patterns"`
2310}
2311
2312// ProtoReq name.
2313func (m NetworkSetRequestInterception) ProtoReq() string { return "Network.setRequestInterception" }
2314
2315// Call sends the request.
2316func (m NetworkSetRequestInterception) Call(c Client) error {
2317 return call(m.ProtoReq(), m, nil, c)
2318}
2319
2320// NetworkSetUserAgentOverride Allows overriding user agent with the given string.
2321type NetworkSetUserAgentOverride struct {
2322 // UserAgent User agent to use.
2323 UserAgent string `json:"userAgent"`
2324
2325 // AcceptLanguage (optional) Browser language to emulate.
2326 AcceptLanguage string `json:"acceptLanguage,omitempty"`
2327
2328 // Platform (optional) The platform navigator.platform should return.
2329 Platform string `json:"platform,omitempty"`
2330
2331 // UserAgentMetadata (experimental) (optional) To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData
2332 UserAgentMetadata *EmulationUserAgentMetadata `json:"userAgentMetadata,omitempty"`
2333}
2334
2335// ProtoReq name.
2336func (m NetworkSetUserAgentOverride) ProtoReq() string { return "Network.setUserAgentOverride" }
2337
2338// Call sends the request.
2339func (m NetworkSetUserAgentOverride) Call(c Client) error {
2340 return call(m.ProtoReq(), m, nil, c)
2341}
2342
2343// NetworkStreamResourceContent (experimental) Enables streaming of the response for the given requestId.
2344// If enabled, the dataReceived event contains the data that was received during streaming.
2345type NetworkStreamResourceContent struct {
2346 // RequestID Identifier of the request to stream.
2347 RequestID NetworkRequestID `json:"requestId"`
2348}
2349
2350// ProtoReq name.
2351func (m NetworkStreamResourceContent) ProtoReq() string { return "Network.streamResourceContent" }
2352
2353// Call the request.
2354func (m NetworkStreamResourceContent) Call(c Client) (*NetworkStreamResourceContentResult, error) {
2355 var res NetworkStreamResourceContentResult
2356 return &res, call(m.ProtoReq(), m, &res, c)
2357}
2358
2359// NetworkStreamResourceContentResult (experimental) ...
2360type NetworkStreamResourceContentResult struct {
2361 // BufferedData Data that has been buffered until streaming is enabled.
2362 BufferedData []byte `json:"bufferedData"`
2363}
2364
2365// NetworkGetSecurityIsolationStatus (experimental) Returns information about the COEP/COOP isolation status.
2366type NetworkGetSecurityIsolationStatus struct {
2367 // FrameID (optional) If no frameId is provided, the status of the target is provided.
2368 FrameID PageFrameID `json:"frameId,omitempty"`
2369}
2370
2371// ProtoReq name.
2372func (m NetworkGetSecurityIsolationStatus) ProtoReq() string {
2373 return "Network.getSecurityIsolationStatus"
2374}
2375
2376// Call the request.
2377func (m NetworkGetSecurityIsolationStatus) Call(c Client) (*NetworkGetSecurityIsolationStatusResult, error) {
2378 var res NetworkGetSecurityIsolationStatusResult
2379 return &res, call(m.ProtoReq(), m, &res, c)
2380}
2381
2382// NetworkGetSecurityIsolationStatusResult (experimental) ...
2383type NetworkGetSecurityIsolationStatusResult struct {
2384 // Status ...
2385 Status *NetworkSecurityIsolationStatus `json:"status"`
2386}
2387
2388// NetworkEnableReportingAPI (experimental) Enables tracking for the Reporting API, events generated by the Reporting API will now be delivered to the client.
2389// Enabling triggers 'reportingApiReportAdded' for all existing reports.
2390type NetworkEnableReportingAPI struct {
2391 // Enable Whether to enable or disable events for the Reporting API
2392 Enable bool `json:"enable"`
2393}
2394
2395// ProtoReq name.
2396func (m NetworkEnableReportingAPI) ProtoReq() string { return "Network.enableReportingApi" }
2397
2398// Call sends the request.
2399func (m NetworkEnableReportingAPI) Call(c Client) error {
2400 return call(m.ProtoReq(), m, nil, c)
2401}
2402
2403// NetworkLoadNetworkResource (experimental) Fetches the resource and returns the content.
2404type NetworkLoadNetworkResource struct {
2405 // FrameID (optional) Frame id to get the resource for. Mandatory for frame targets, and
2406 // should be omitted for worker targets.
2407 FrameID PageFrameID `json:"frameId,omitempty"`
2408
2409 // URL of the resource to get content for.
2410 URL string `json:"url"`
2411
2412 // Options for the request.
2413 Options *NetworkLoadNetworkResourceOptions `json:"options"`
2414}
2415
2416// ProtoReq name.
2417func (m NetworkLoadNetworkResource) ProtoReq() string { return "Network.loadNetworkResource" }
2418
2419// Call the request.
2420func (m NetworkLoadNetworkResource) Call(c Client) (*NetworkLoadNetworkResourceResult, error) {
2421 var res NetworkLoadNetworkResourceResult
2422 return &res, call(m.ProtoReq(), m, &res, c)
2423}
2424
2425// NetworkLoadNetworkResourceResult (experimental) ...
2426type NetworkLoadNetworkResourceResult struct {
2427 // Resource ...
2428 Resource *NetworkLoadNetworkResourcePageResult `json:"resource"`
2429}
2430
2431// NetworkDataReceived Fired when data chunk was received over the network.
2432type NetworkDataReceived struct {
2433 // RequestID Request identifier.
2434 RequestID NetworkRequestID `json:"requestId"`
2435
2436 // Timestamp.
2437 Timestamp MonotonicTime `json:"timestamp"`
2438
2439 // DataLength Data chunk length.
2440 DataLength int `json:"dataLength"`
2441
2442 // EncodedDataLength Actual bytes received (might be less than dataLength for compressed encodings).
2443 EncodedDataLength int `json:"encodedDataLength"`
2444
2445 // Data (experimental) (optional) Data that was received.
2446 Data []byte `json:"data,omitempty"`
2447}
2448
2449// ProtoEvent name.
2450func (evt NetworkDataReceived) ProtoEvent() string {
2451 return "Network.dataReceived"
2452}
2453
2454// NetworkEventSourceMessageReceived Fired when EventSource message is received.
2455type NetworkEventSourceMessageReceived struct {
2456 // RequestID Request identifier.
2457 RequestID NetworkRequestID `json:"requestId"`
2458
2459 // Timestamp.
2460 Timestamp MonotonicTime `json:"timestamp"`
2461
2462 // EventName Message type.
2463 EventName string `json:"eventName"`
2464
2465 // EventID Message identifier.
2466 EventID string `json:"eventId"`
2467
2468 // Data Message content.
2469 Data string `json:"data"`
2470}
2471
2472// ProtoEvent name.
2473func (evt NetworkEventSourceMessageReceived) ProtoEvent() string {
2474 return "Network.eventSourceMessageReceived"
2475}
2476
2477// NetworkLoadingFailed Fired when HTTP request has failed to load.
2478type NetworkLoadingFailed struct {
2479 // RequestID Request identifier.
2480 RequestID NetworkRequestID `json:"requestId"`
2481
2482 // Timestamp.
2483 Timestamp MonotonicTime `json:"timestamp"`
2484
2485 // Type Resource type.
2486 Type NetworkResourceType `json:"type"`
2487
2488 // ErrorText Error message. List of network errors: https://cs.chromium.org/chromium/src/net/base/net_error_list.h
2489 ErrorText string `json:"errorText"`
2490
2491 // Canceled (optional) True if loading was canceled.
2492 Canceled bool `json:"canceled,omitempty"`
2493
2494 // BlockedReason (optional) The reason why loading was blocked, if any.
2495 BlockedReason NetworkBlockedReason `json:"blockedReason,omitempty"`
2496
2497 // CorsErrorStatus (optional) The reason why loading was blocked by CORS, if any.
2498 CorsErrorStatus *NetworkCorsErrorStatus `json:"corsErrorStatus,omitempty"`
2499}
2500
2501// ProtoEvent name.
2502func (evt NetworkLoadingFailed) ProtoEvent() string {
2503 return "Network.loadingFailed"
2504}
2505
2506// NetworkLoadingFinished Fired when HTTP request has finished loading.
2507type NetworkLoadingFinished struct {
2508 // RequestID Request identifier.
2509 RequestID NetworkRequestID `json:"requestId"`
2510
2511 // Timestamp.
2512 Timestamp MonotonicTime `json:"timestamp"`
2513
2514 // EncodedDataLength Total number of bytes received for this request.
2515 EncodedDataLength float64 `json:"encodedDataLength"`
2516}
2517
2518// ProtoEvent name.
2519func (evt NetworkLoadingFinished) ProtoEvent() string {
2520 return "Network.loadingFinished"
2521}
2522
2523// NetworkRequestIntercepted (deprecated) (experimental) Details of an intercepted HTTP request, which must be either allowed, blocked, modified or
2524// mocked.
2525// Deprecated, use Fetch.requestPaused instead.
2526type NetworkRequestIntercepted struct {
2527 // InterceptionID Each request the page makes will have a unique id, however if any redirects are encountered
2528 // while processing that fetch, they will be reported with the same id as the original fetch.
2529 // Likewise if HTTP authentication is needed then the same fetch id will be used.
2530 InterceptionID NetworkInterceptionID `json:"interceptionId"`
2531
2532 // Request ...
2533 Request *NetworkRequest `json:"request"`
2534
2535 // FrameID The id of the frame that initiated the request.
2536 FrameID PageFrameID `json:"frameId"`
2537
2538 // ResourceType How the requested resource will be used.
2539 ResourceType NetworkResourceType `json:"resourceType"`
2540
2541 // IsNavigationRequest Whether this is a navigation request, which can abort the navigation completely.
2542 IsNavigationRequest bool `json:"isNavigationRequest"`
2543
2544 // IsDownload (optional) Set if the request is a navigation that will result in a download.
2545 // Only present after response is received from the server (i.e. HeadersReceived stage).
2546 IsDownload bool `json:"isDownload,omitempty"`
2547
2548 // RedirectURL (optional) Redirect location, only sent if a redirect was intercepted.
2549 RedirectURL string `json:"redirectUrl,omitempty"`
2550
2551 // AuthChallenge (optional) Details of the Authorization Challenge encountered. If this is set then
2552 // continueInterceptedRequest must contain an authChallengeResponse.
2553 AuthChallenge *NetworkAuthChallenge `json:"authChallenge,omitempty"`
2554
2555 // ResponseErrorReason (optional) Response error if intercepted at response stage or if redirect occurred while intercepting
2556 // request.
2557 ResponseErrorReason NetworkErrorReason `json:"responseErrorReason,omitempty"`
2558
2559 // ResponseStatusCode (optional) Response code if intercepted at response stage or if redirect occurred while intercepting
2560 // request or auth retry occurred.
2561 ResponseStatusCode *int `json:"responseStatusCode,omitempty"`
2562
2563 // ResponseHeaders (optional) Response headers if intercepted at the response stage or if redirect occurred while
2564 // intercepting request or auth retry occurred.
2565 ResponseHeaders NetworkHeaders `json:"responseHeaders,omitempty"`
2566
2567 // RequestID (optional) If the intercepted request had a corresponding requestWillBeSent event fired for it, then
2568 // this requestId will be the same as the requestId present in the requestWillBeSent event.
2569 RequestID NetworkRequestID `json:"requestId,omitempty"`
2570}
2571
2572// ProtoEvent name.
2573func (evt NetworkRequestIntercepted) ProtoEvent() string {
2574 return "Network.requestIntercepted"
2575}
2576
2577// NetworkRequestServedFromCache Fired if request ended up loading from cache.
2578type NetworkRequestServedFromCache struct {
2579 // RequestID Request identifier.
2580 RequestID NetworkRequestID `json:"requestId"`
2581}
2582
2583// ProtoEvent name.
2584func (evt NetworkRequestServedFromCache) ProtoEvent() string {
2585 return "Network.requestServedFromCache"
2586}
2587
2588// NetworkRequestWillBeSent Fired when page is about to send HTTP request.
2589type NetworkRequestWillBeSent struct {
2590 // RequestID Request identifier.
2591 RequestID NetworkRequestID `json:"requestId"`
2592
2593 // LoaderID Loader identifier. Empty string if the request is fetched from worker.
2594 LoaderID NetworkLoaderID `json:"loaderId"`
2595
2596 // DocumentURL URL of the document this request is loaded for.
2597 DocumentURL string `json:"documentURL"`
2598
2599 // Request data.
2600 Request *NetworkRequest `json:"request"`
2601
2602 // Timestamp.
2603 Timestamp MonotonicTime `json:"timestamp"`
2604
2605 // WallTime Timestamp.
2606 WallTime TimeSinceEpoch `json:"wallTime"`
2607
2608 // Initiator Request initiator.
2609 Initiator *NetworkInitiator `json:"initiator"`
2610
2611 // RedirectHasExtraInfo (experimental) In the case that redirectResponse is populated, this flag indicates whether
2612 // requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted
2613 // for the request which was just redirected.
2614 RedirectHasExtraInfo bool `json:"redirectHasExtraInfo"`
2615
2616 // RedirectResponse (optional) Redirect response data.
2617 RedirectResponse *NetworkResponse `json:"redirectResponse,omitempty"`
2618
2619 // Type (optional) Type of this resource.
2620 Type NetworkResourceType `json:"type,omitempty"`
2621
2622 // FrameID (optional) Frame identifier.
2623 FrameID PageFrameID `json:"frameId,omitempty"`
2624
2625 // HasUserGesture (optional) Whether the request is initiated by a user gesture. Defaults to false.
2626 HasUserGesture bool `json:"hasUserGesture,omitempty"`
2627}
2628
2629// ProtoEvent name.
2630func (evt NetworkRequestWillBeSent) ProtoEvent() string {
2631 return "Network.requestWillBeSent"
2632}
2633
2634// NetworkResourceChangedPriority (experimental) Fired when resource loading priority is changed.
2635type NetworkResourceChangedPriority struct {
2636 // RequestID Request identifier.
2637 RequestID NetworkRequestID `json:"requestId"`
2638
2639 // NewPriority New priority
2640 NewPriority NetworkResourcePriority `json:"newPriority"`
2641
2642 // Timestamp.
2643 Timestamp MonotonicTime `json:"timestamp"`
2644}
2645
2646// ProtoEvent name.
2647func (evt NetworkResourceChangedPriority) ProtoEvent() string {
2648 return "Network.resourceChangedPriority"
2649}
2650
2651// NetworkSignedExchangeReceived (experimental) Fired when a signed exchange was received over the network.
2652type NetworkSignedExchangeReceived struct {
2653 // RequestID Request identifier.
2654 RequestID NetworkRequestID `json:"requestId"`
2655
2656 // Information about the signed exchange response.
2657 Info *NetworkSignedExchangeInfo `json:"info"`
2658}
2659
2660// ProtoEvent name.
2661func (evt NetworkSignedExchangeReceived) ProtoEvent() string {
2662 return "Network.signedExchangeReceived"
2663}
2664
2665// NetworkResponseReceived Fired when HTTP response is available.
2666type NetworkResponseReceived struct {
2667 // RequestID Request identifier.
2668 RequestID NetworkRequestID `json:"requestId"`
2669
2670 // LoaderID Loader identifier. Empty string if the request is fetched from worker.
2671 LoaderID NetworkLoaderID `json:"loaderId"`
2672
2673 // Timestamp.
2674 Timestamp MonotonicTime `json:"timestamp"`
2675
2676 // Type Resource type.
2677 Type NetworkResourceType `json:"type"`
2678
2679 // Response data.
2680 Response *NetworkResponse `json:"response"`
2681
2682 // HasExtraInfo (experimental) Indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be
2683 // or were emitted for this request.
2684 HasExtraInfo bool `json:"hasExtraInfo"`
2685
2686 // FrameID (optional) Frame identifier.
2687 FrameID PageFrameID `json:"frameId,omitempty"`
2688}
2689
2690// ProtoEvent name.
2691func (evt NetworkResponseReceived) ProtoEvent() string {
2692 return "Network.responseReceived"
2693}
2694
2695// NetworkWebSocketClosed Fired when WebSocket is closed.
2696type NetworkWebSocketClosed struct {
2697 // RequestID Request identifier.
2698 RequestID NetworkRequestID `json:"requestId"`
2699
2700 // Timestamp.
2701 Timestamp MonotonicTime `json:"timestamp"`
2702}
2703
2704// ProtoEvent name.
2705func (evt NetworkWebSocketClosed) ProtoEvent() string {
2706 return "Network.webSocketClosed"
2707}
2708
2709// NetworkWebSocketCreated Fired upon WebSocket creation.
2710type NetworkWebSocketCreated struct {
2711 // RequestID Request identifier.
2712 RequestID NetworkRequestID `json:"requestId"`
2713
2714 // URL WebSocket request URL.
2715 URL string `json:"url"`
2716
2717 // Initiator (optional) Request initiator.
2718 Initiator *NetworkInitiator `json:"initiator,omitempty"`
2719}
2720
2721// ProtoEvent name.
2722func (evt NetworkWebSocketCreated) ProtoEvent() string {
2723 return "Network.webSocketCreated"
2724}
2725
2726// NetworkWebSocketFrameError Fired when WebSocket message error occurs.
2727type NetworkWebSocketFrameError struct {
2728 // RequestID Request identifier.
2729 RequestID NetworkRequestID `json:"requestId"`
2730
2731 // Timestamp.
2732 Timestamp MonotonicTime `json:"timestamp"`
2733
2734 // ErrorMessage WebSocket error message.
2735 ErrorMessage string `json:"errorMessage"`
2736}
2737
2738// ProtoEvent name.
2739func (evt NetworkWebSocketFrameError) ProtoEvent() string {
2740 return "Network.webSocketFrameError"
2741}
2742
2743// NetworkWebSocketFrameReceived Fired when WebSocket message is received.
2744type NetworkWebSocketFrameReceived struct {
2745 // RequestID Request identifier.
2746 RequestID NetworkRequestID `json:"requestId"`
2747
2748 // Timestamp.
2749 Timestamp MonotonicTime `json:"timestamp"`
2750
2751 // Response WebSocket response data.
2752 Response *NetworkWebSocketFrame `json:"response"`
2753}
2754
2755// ProtoEvent name.
2756func (evt NetworkWebSocketFrameReceived) ProtoEvent() string {
2757 return "Network.webSocketFrameReceived"
2758}
2759
2760// NetworkWebSocketFrameSent Fired when WebSocket message is sent.
2761type NetworkWebSocketFrameSent struct {
2762 // RequestID Request identifier.
2763 RequestID NetworkRequestID `json:"requestId"`
2764
2765 // Timestamp.
2766 Timestamp MonotonicTime `json:"timestamp"`
2767
2768 // Response WebSocket response data.
2769 Response *NetworkWebSocketFrame `json:"response"`
2770}
2771
2772// ProtoEvent name.
2773func (evt NetworkWebSocketFrameSent) ProtoEvent() string {
2774 return "Network.webSocketFrameSent"
2775}
2776
2777// NetworkWebSocketHandshakeResponseReceived Fired when WebSocket handshake response becomes available.
2778type NetworkWebSocketHandshakeResponseReceived struct {
2779 // RequestID Request identifier.
2780 RequestID NetworkRequestID `json:"requestId"`
2781
2782 // Timestamp.
2783 Timestamp MonotonicTime `json:"timestamp"`
2784
2785 // Response WebSocket response data.
2786 Response *NetworkWebSocketResponse `json:"response"`
2787}
2788
2789// ProtoEvent name.
2790func (evt NetworkWebSocketHandshakeResponseReceived) ProtoEvent() string {
2791 return "Network.webSocketHandshakeResponseReceived"
2792}
2793
2794// NetworkWebSocketWillSendHandshakeRequest Fired when WebSocket is about to initiate handshake.
2795type NetworkWebSocketWillSendHandshakeRequest struct {
2796 // RequestID Request identifier.
2797 RequestID NetworkRequestID `json:"requestId"`
2798
2799 // Timestamp.
2800 Timestamp MonotonicTime `json:"timestamp"`
2801
2802 // WallTime UTC Timestamp.
2803 WallTime TimeSinceEpoch `json:"wallTime"`
2804
2805 // Request WebSocket request data.
2806 Request *NetworkWebSocketRequest `json:"request"`
2807}
2808
2809// ProtoEvent name.
2810func (evt NetworkWebSocketWillSendHandshakeRequest) ProtoEvent() string {
2811 return "Network.webSocketWillSendHandshakeRequest"
2812}
2813
2814// NetworkWebTransportCreated Fired upon WebTransport creation.
2815type NetworkWebTransportCreated struct {
2816 // TransportID WebTransport identifier.
2817 TransportID NetworkRequestID `json:"transportId"`
2818
2819 // URL WebTransport request URL.
2820 URL string `json:"url"`
2821
2822 // Timestamp.
2823 Timestamp MonotonicTime `json:"timestamp"`
2824
2825 // Initiator (optional) Request initiator.
2826 Initiator *NetworkInitiator `json:"initiator,omitempty"`
2827}
2828
2829// ProtoEvent name.
2830func (evt NetworkWebTransportCreated) ProtoEvent() string {
2831 return "Network.webTransportCreated"
2832}
2833
2834// NetworkWebTransportConnectionEstablished Fired when WebTransport handshake is finished.
2835type NetworkWebTransportConnectionEstablished struct {
2836 // TransportID WebTransport identifier.
2837 TransportID NetworkRequestID `json:"transportId"`
2838
2839 // Timestamp.
2840 Timestamp MonotonicTime `json:"timestamp"`
2841}
2842
2843// ProtoEvent name.
2844func (evt NetworkWebTransportConnectionEstablished) ProtoEvent() string {
2845 return "Network.webTransportConnectionEstablished"
2846}
2847
2848// NetworkWebTransportClosed Fired when WebTransport is disposed.
2849type NetworkWebTransportClosed struct {
2850 // TransportID WebTransport identifier.
2851 TransportID NetworkRequestID `json:"transportId"`
2852
2853 // Timestamp.
2854 Timestamp MonotonicTime `json:"timestamp"`
2855}
2856
2857// ProtoEvent name.
2858func (evt NetworkWebTransportClosed) ProtoEvent() string {
2859 return "Network.webTransportClosed"
2860}
2861
2862// NetworkRequestWillBeSentExtraInfo (experimental) Fired when additional information about a requestWillBeSent event is available from the
2863// network stack. Not every requestWillBeSent event will have an additional
2864// requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent
2865// or requestWillBeSentExtraInfo will be fired first for the same request.
2866type NetworkRequestWillBeSentExtraInfo struct {
2867 // RequestID Request identifier. Used to match this information to an existing requestWillBeSent event.
2868 RequestID NetworkRequestID `json:"requestId"`
2869
2870 // AssociatedCookies A list of cookies potentially associated to the requested URL. This includes both cookies sent with
2871 // the request and the ones not sent; the latter are distinguished by having blockedReasons field set.
2872 AssociatedCookies []*NetworkAssociatedCookie `json:"associatedCookies"`
2873
2874 // Headers Raw request headers as they will be sent over the wire.
2875 Headers NetworkHeaders `json:"headers"`
2876
2877 // ConnectTiming (experimental) Connection timing information for the request.
2878 ConnectTiming *NetworkConnectTiming `json:"connectTiming"`
2879
2880 // ClientSecurityState (optional) The client security state set for the request.
2881 ClientSecurityState *NetworkClientSecurityState `json:"clientSecurityState,omitempty"`
2882
2883 // SiteHasCookieInOtherPartition (optional) Whether the site has partitioned cookies stored in a partition different than the current one.
2884 SiteHasCookieInOtherPartition bool `json:"siteHasCookieInOtherPartition,omitempty"`
2885}
2886
2887// ProtoEvent name.
2888func (evt NetworkRequestWillBeSentExtraInfo) ProtoEvent() string {
2889 return "Network.requestWillBeSentExtraInfo"
2890}
2891
2892// NetworkResponseReceivedExtraInfo (experimental) Fired when additional information about a responseReceived event is available from the network
2893// stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for
2894// it, and responseReceivedExtraInfo may be fired before or after responseReceived.
2895type NetworkResponseReceivedExtraInfo struct {
2896 // RequestID Request identifier. Used to match this information to another responseReceived event.
2897 RequestID NetworkRequestID `json:"requestId"`
2898
2899 // BlockedCookies A list of cookies which were not stored from the response along with the corresponding
2900 // reasons for blocking. The cookies here may not be valid due to syntax errors, which
2901 // are represented by the invalid cookie line string instead of a proper cookie.
2902 BlockedCookies []*NetworkBlockedSetCookieWithReason `json:"blockedCookies"`
2903
2904 // Headers Raw response headers as they were received over the wire.
2905 Headers NetworkHeaders `json:"headers"`
2906
2907 // ResourceIPAddressSpace The IP address space of the resource. The address space can only be determined once the transport
2908 // established the connection, so we can't send it in `requestWillBeSentExtraInfo`.
2909 ResourceIPAddressSpace NetworkIPAddressSpace `json:"resourceIPAddressSpace"`
2910
2911 // StatusCode The status code of the response. This is useful in cases the request failed and no responseReceived
2912 // event is triggered, which is the case for, e.g., CORS errors. This is also the correct status code
2913 // for cached requests, where the status in responseReceived is a 200 and this will be 304.
2914 StatusCode int `json:"statusCode"`
2915
2916 // HeadersText (optional) Raw response header text as it was received over the wire. The raw text may not always be
2917 // available, such as in the case of HTTP/2 or QUIC.
2918 HeadersText string `json:"headersText,omitempty"`
2919
2920 // CookiePartitionKey (experimental) (optional) The cookie partition key that will be used to store partitioned cookies set in this response.
2921 // Only sent when partitioned cookies are enabled.
2922 CookiePartitionKey *NetworkCookiePartitionKey `json:"cookiePartitionKey,omitempty"`
2923
2924 // CookiePartitionKeyOpaque (optional) True if partitioned cookies are enabled, but the partition key is not serializable to string.
2925 CookiePartitionKeyOpaque bool `json:"cookiePartitionKeyOpaque,omitempty"`
2926
2927 // ExemptedCookies (optional) A list of cookies which should have been blocked by 3PCD but are exempted and stored from
2928 // the response with the corresponding reason.
2929 ExemptedCookies []*NetworkExemptedSetCookieWithReason `json:"exemptedCookies,omitempty"`
2930}
2931
2932// ProtoEvent name.
2933func (evt NetworkResponseReceivedExtraInfo) ProtoEvent() string {
2934 return "Network.responseReceivedExtraInfo"
2935}
2936
2937// NetworkResponseReceivedEarlyHints (experimental) Fired when 103 Early Hints headers is received in addition to the common response.
2938// Not every responseReceived event will have an responseReceivedEarlyHints fired.
2939// Only one responseReceivedEarlyHints may be fired for eached responseReceived event.
2940type NetworkResponseReceivedEarlyHints struct {
2941 // RequestID Request identifier. Used to match this information to another responseReceived event.
2942 RequestID NetworkRequestID `json:"requestId"`
2943
2944 // Headers Raw response headers as they were received over the wire.
2945 Headers NetworkHeaders `json:"headers"`
2946}
2947
2948// ProtoEvent name.
2949func (evt NetworkResponseReceivedEarlyHints) ProtoEvent() string {
2950 return "Network.responseReceivedEarlyHints"
2951}
2952
2953// NetworkTrustTokenOperationDoneStatus enum.
2954type NetworkTrustTokenOperationDoneStatus string
2955
2956const (
2957 // NetworkTrustTokenOperationDoneStatusOk enum const.
2958 NetworkTrustTokenOperationDoneStatusOk NetworkTrustTokenOperationDoneStatus = "Ok"
2959
2960 // NetworkTrustTokenOperationDoneStatusInvalidArgument enum const.
2961 NetworkTrustTokenOperationDoneStatusInvalidArgument NetworkTrustTokenOperationDoneStatus = "InvalidArgument"
2962
2963 // NetworkTrustTokenOperationDoneStatusMissingIssuerKeys enum const.
2964 NetworkTrustTokenOperationDoneStatusMissingIssuerKeys NetworkTrustTokenOperationDoneStatus = "MissingIssuerKeys"
2965
2966 // NetworkTrustTokenOperationDoneStatusFailedPrecondition enum const.
2967 NetworkTrustTokenOperationDoneStatusFailedPrecondition NetworkTrustTokenOperationDoneStatus = "FailedPrecondition"
2968
2969 // NetworkTrustTokenOperationDoneStatusResourceExhausted enum const.
2970 NetworkTrustTokenOperationDoneStatusResourceExhausted NetworkTrustTokenOperationDoneStatus = "ResourceExhausted"
2971
2972 // NetworkTrustTokenOperationDoneStatusAlreadyExists enum const.
2973 NetworkTrustTokenOperationDoneStatusAlreadyExists NetworkTrustTokenOperationDoneStatus = "AlreadyExists"
2974
2975 // NetworkTrustTokenOperationDoneStatusResourceLimited enum const.
2976 NetworkTrustTokenOperationDoneStatusResourceLimited NetworkTrustTokenOperationDoneStatus = "ResourceLimited"
2977
2978 // NetworkTrustTokenOperationDoneStatusUnauthorized enum const.
2979 NetworkTrustTokenOperationDoneStatusUnauthorized NetworkTrustTokenOperationDoneStatus = "Unauthorized"
2980
2981 // NetworkTrustTokenOperationDoneStatusBadResponse enum const.
2982 NetworkTrustTokenOperationDoneStatusBadResponse NetworkTrustTokenOperationDoneStatus = "BadResponse"
2983
2984 // NetworkTrustTokenOperationDoneStatusInternalError enum const.
2985 NetworkTrustTokenOperationDoneStatusInternalError NetworkTrustTokenOperationDoneStatus = "InternalError"
2986
2987 // NetworkTrustTokenOperationDoneStatusUnknownError enum const.
2988 NetworkTrustTokenOperationDoneStatusUnknownError NetworkTrustTokenOperationDoneStatus = "UnknownError"
2989
2990 // NetworkTrustTokenOperationDoneStatusFulfilledLocally enum const.
2991 NetworkTrustTokenOperationDoneStatusFulfilledLocally NetworkTrustTokenOperationDoneStatus = "FulfilledLocally"
2992)
2993
2994// NetworkTrustTokenOperationDone (experimental) Fired exactly once for each Trust Token operation. Depending on
2995// the type of the operation and whether the operation succeeded or
2996// failed, the event is fired before the corresponding request was sent
2997// or after the response was received.
2998type NetworkTrustTokenOperationDone struct {
2999 // Status Detailed success or error status of the operation.
3000 // 'AlreadyExists' also signifies a successful operation, as the result
3001 // of the operation already exists und thus, the operation was abort
3002 // preemptively (e.g. a cache hit).
3003 Status NetworkTrustTokenOperationDoneStatus `json:"status"`
3004
3005 // Type ...
3006 Type NetworkTrustTokenOperationType `json:"type"`
3007
3008 // RequestID ...
3009 RequestID NetworkRequestID `json:"requestId"`
3010
3011 // TopLevelOrigin (optional) Top level origin. The context in which the operation was attempted.
3012 TopLevelOrigin string `json:"topLevelOrigin,omitempty"`
3013
3014 // IssuerOrigin (optional) Origin of the issuer in case of a "Issuance" or "Redemption" operation.
3015 IssuerOrigin string `json:"issuerOrigin,omitempty"`
3016
3017 // IssuedTokenCount (optional) The number of obtained Trust Tokens on a successful "Issuance" operation.
3018 IssuedTokenCount *int `json:"issuedTokenCount,omitempty"`
3019}
3020
3021// ProtoEvent name.
3022func (evt NetworkTrustTokenOperationDone) ProtoEvent() string {
3023 return "Network.trustTokenOperationDone"
3024}
3025
3026// NetworkPolicyUpdated (experimental) Fired once security policy has been updated.
3027type NetworkPolicyUpdated struct{}
3028
3029// ProtoEvent name.
3030func (evt NetworkPolicyUpdated) ProtoEvent() string {
3031 return "Network.policyUpdated"
3032}
3033
3034// NetworkSubresourceWebBundleMetadataReceived (experimental) Fired once when parsing the .wbn file has succeeded.
3035// The event contains the information about the web bundle contents.
3036type NetworkSubresourceWebBundleMetadataReceived struct {
3037 // RequestID Request identifier. Used to match this information to another event.
3038 RequestID NetworkRequestID `json:"requestId"`
3039
3040 // Urls A list of URLs of resources in the subresource Web Bundle.
3041 Urls []string `json:"urls"`
3042}
3043
3044// ProtoEvent name.
3045func (evt NetworkSubresourceWebBundleMetadataReceived) ProtoEvent() string {
3046 return "Network.subresourceWebBundleMetadataReceived"
3047}
3048
3049// NetworkSubresourceWebBundleMetadataError (experimental) Fired once when parsing the .wbn file has failed.
3050type NetworkSubresourceWebBundleMetadataError struct {
3051 // RequestID Request identifier. Used to match this information to another event.
3052 RequestID NetworkRequestID `json:"requestId"`
3053
3054 // ErrorMessage Error message
3055 ErrorMessage string `json:"errorMessage"`
3056}
3057
3058// ProtoEvent name.
3059func (evt NetworkSubresourceWebBundleMetadataError) ProtoEvent() string {
3060 return "Network.subresourceWebBundleMetadataError"
3061}
3062
3063// NetworkSubresourceWebBundleInnerResponseParsed (experimental) Fired when handling requests for resources within a .wbn file.
3064// Note: this will only be fired for resources that are requested by the webpage.
3065type NetworkSubresourceWebBundleInnerResponseParsed struct {
3066 // InnerRequestID Request identifier of the subresource request
3067 InnerRequestID NetworkRequestID `json:"innerRequestId"`
3068
3069 // InnerRequestURL URL of the subresource resource.
3070 InnerRequestURL string `json:"innerRequestURL"`
3071
3072 // BundleRequestID (optional) Bundle request identifier. Used to match this information to another event.
3073 // This made be absent in case when the instrumentation was enabled only
3074 // after webbundle was parsed.
3075 BundleRequestID NetworkRequestID `json:"bundleRequestId,omitempty"`
3076}
3077
3078// ProtoEvent name.
3079func (evt NetworkSubresourceWebBundleInnerResponseParsed) ProtoEvent() string {
3080 return "Network.subresourceWebBundleInnerResponseParsed"
3081}
3082
3083// NetworkSubresourceWebBundleInnerResponseError (experimental) Fired when request for resources within a .wbn file failed.
3084type NetworkSubresourceWebBundleInnerResponseError struct {
3085 // InnerRequestID Request identifier of the subresource request
3086 InnerRequestID NetworkRequestID `json:"innerRequestId"`
3087
3088 // InnerRequestURL URL of the subresource resource.
3089 InnerRequestURL string `json:"innerRequestURL"`
3090
3091 // ErrorMessage Error message
3092 ErrorMessage string `json:"errorMessage"`
3093
3094 // BundleRequestID (optional) Bundle request identifier. Used to match this information to another event.
3095 // This made be absent in case when the instrumentation was enabled only
3096 // after webbundle was parsed.
3097 BundleRequestID NetworkRequestID `json:"bundleRequestId,omitempty"`
3098}
3099
3100// ProtoEvent name.
3101func (evt NetworkSubresourceWebBundleInnerResponseError) ProtoEvent() string {
3102 return "Network.subresourceWebBundleInnerResponseError"
3103}
3104
3105// NetworkReportingAPIReportAdded (experimental) Is sent whenever a new report is added.
3106// And after 'enableReportingApi' for all existing reports.
3107type NetworkReportingAPIReportAdded struct {
3108 // Report ...
3109 Report *NetworkReportingAPIReport `json:"report"`
3110}
3111
3112// ProtoEvent name.
3113func (evt NetworkReportingAPIReportAdded) ProtoEvent() string {
3114 return "Network.reportingApiReportAdded"
3115}
3116
3117// NetworkReportingAPIReportUpdated (experimental) ...
3118type NetworkReportingAPIReportUpdated struct {
3119 // Report ...
3120 Report *NetworkReportingAPIReport `json:"report"`
3121}
3122
3123// ProtoEvent name.
3124func (evt NetworkReportingAPIReportUpdated) ProtoEvent() string {
3125 return "Network.reportingApiReportUpdated"
3126}
3127
3128// NetworkReportingAPIEndpointsChangedForOrigin (experimental) ...
3129type NetworkReportingAPIEndpointsChangedForOrigin struct {
3130 // Origin of the document(s) which configured the endpoints.
3131 Origin string `json:"origin"`
3132
3133 // Endpoints ...
3134 Endpoints []*NetworkReportingAPIEndpoint `json:"endpoints"`
3135}
3136
3137// ProtoEvent name.
3138func (evt NetworkReportingAPIEndpointsChangedForOrigin) ProtoEvent() string {
3139 return "Network.reportingApiEndpointsChangedForOrigin"
3140}