devtools-protocol 0.0.1170333 → 0.0.1170846

Sign up to get free protection for your applications and to get access to all the features.
@@ -22290,7 +22290,7 @@
22290
22290
  },
22291
22291
  {
22292
22292
  "name": "getResponseBody",
22293
- "description": "Causes the body of the response to be received from the server and\nreturned as a single string. May only be issued for a request that\nis paused in the Response stage and is mutually exclusive with\ntakeResponseBodyForInterceptionAsStream. Calling other methods that\naffect the request or disabling fetch domain before body is received\nresults in an undefined behavior.",
22293
+ "description": "Causes the body of the response to be received from the server and\nreturned as a single string. May only be issued for a request that\nis paused in the Response stage and is mutually exclusive with\ntakeResponseBodyForInterceptionAsStream. Calling other methods that\naffect the request or disabling fetch domain before body is received\nresults in an undefined behavior.\nNote that the response body is not available for redirects. Requests\npaused in the _redirect received_ state may be differentiated by\n`responseCode` and presence of `location` response header, see\ncomments to `requestPaused` for details.",
22294
22294
  "parameters": [
22295
22295
  {
22296
22296
  "name": "requestId",
@@ -22331,7 +22331,7 @@
22331
22331
  "events": [
22332
22332
  {
22333
22333
  "name": "requestPaused",
22334
- "description": "Issued when the domain is enabled and the request URL matches the\nspecified filter. The request is paused until the client responds\nwith one of continueRequest, failRequest or fulfillRequest.\nThe stage of the request can be determined by presence of responseErrorReason\nand responseStatusCode -- the request is at the response stage if either\nof these fields is present and in the request stage otherwise.",
22334
+ "description": "Issued when the domain is enabled and the request URL matches the\nspecified filter. The request is paused until the client responds\nwith one of continueRequest, failRequest or fulfillRequest.\nThe stage of the request can be determined by presence of responseErrorReason\nand responseStatusCode -- the request is at the response stage if either\nof these fields is present and in the request stage otherwise.\nRedirect responses and subsequent requests are reported similarly to regular\nresponses and requests. Redirect responses may be distinguished by the value\nof `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with\npresence of the `location` header. Requests resulting from a redirect will\nhave `redirectedRequestId` field set.",
22335
22335
  "parameters": [
22336
22336
  {
22337
22337
  "name": "requestId",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1170333",
3
+ "version": "0.0.1170846",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -10485,6 +10485,10 @@ domain Fetch
10485
10485
  # takeResponseBodyForInterceptionAsStream. Calling other methods that
10486
10486
  # affect the request or disabling fetch domain before body is received
10487
10487
  # results in an undefined behavior.
10488
+ # Note that the response body is not available for redirects. Requests
10489
+ # paused in the _redirect received_ state may be differentiated by
10490
+ # `responseCode` and presence of `location` response header, see
10491
+ # comments to `requestPaused` for details.
10488
10492
  command getResponseBody
10489
10493
  parameters
10490
10494
  # Identifier for the intercepted request to get body for.
@@ -10517,6 +10521,11 @@ domain Fetch
10517
10521
  # The stage of the request can be determined by presence of responseErrorReason
10518
10522
  # and responseStatusCode -- the request is at the response stage if either
10519
10523
  # of these fields is present and in the request stage otherwise.
10524
+ # Redirect responses and subsequent requests are reported similarly to regular
10525
+ # responses and requests. Redirect responses may be distinguished by the value
10526
+ # of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with
10527
+ # presence of the `location` header. Requests resulting from a redirect will
10528
+ # have `redirectedRequestId` field set.
10520
10529
  event requestPaused
10521
10530
  parameters
10522
10531
  # Each request the page makes will have a unique id.
@@ -616,6 +616,11 @@ export namespace ProtocolMapping {
616
616
  * The stage of the request can be determined by presence of responseErrorReason
617
617
  * and responseStatusCode -- the request is at the response stage if either
618
618
  * of these fields is present and in the request stage otherwise.
619
+ * Redirect responses and subsequent requests are reported similarly to regular
620
+ * responses and requests. Redirect responses may be distinguished by the value
621
+ * of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with
622
+ * presence of the `location` header. Requests resulting from a redirect will
623
+ * have `redirectedRequestId` field set.
619
624
  */
620
625
  'Fetch.requestPaused': [Protocol.Fetch.RequestPausedEvent];
621
626
  /**
@@ -4567,6 +4572,10 @@ export namespace ProtocolMapping {
4567
4572
  * takeResponseBodyForInterceptionAsStream. Calling other methods that
4568
4573
  * affect the request or disabling fetch domain before body is received
4569
4574
  * results in an undefined behavior.
4575
+ * Note that the response body is not available for redirects. Requests
4576
+ * paused in the _redirect received_ state may be differentiated by
4577
+ * `responseCode` and presence of `location` response header, see
4578
+ * comments to `requestPaused` for details.
4570
4579
  */
4571
4580
  'Fetch.getResponseBody': {
4572
4581
  paramsType: [Protocol.Fetch.GetResponseBodyRequest];
@@ -3748,6 +3748,10 @@ export namespace ProtocolProxyApi {
3748
3748
  * takeResponseBodyForInterceptionAsStream. Calling other methods that
3749
3749
  * affect the request or disabling fetch domain before body is received
3750
3750
  * results in an undefined behavior.
3751
+ * Note that the response body is not available for redirects. Requests
3752
+ * paused in the _redirect received_ state may be differentiated by
3753
+ * `responseCode` and presence of `location` response header, see
3754
+ * comments to `requestPaused` for details.
3751
3755
  */
3752
3756
  getResponseBody(params: Protocol.Fetch.GetResponseBodyRequest): Promise<Protocol.Fetch.GetResponseBodyResponse>;
3753
3757
 
@@ -3772,6 +3776,11 @@ export namespace ProtocolProxyApi {
3772
3776
  * The stage of the request can be determined by presence of responseErrorReason
3773
3777
  * and responseStatusCode -- the request is at the response stage if either
3774
3778
  * of these fields is present and in the request stage otherwise.
3779
+ * Redirect responses and subsequent requests are reported similarly to regular
3780
+ * responses and requests. Redirect responses may be distinguished by the value
3781
+ * of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with
3782
+ * presence of the `location` header. Requests resulting from a redirect will
3783
+ * have `redirectedRequestId` field set.
3775
3784
  */
3776
3785
  on(event: 'requestPaused', listener: (params: Protocol.Fetch.RequestPausedEvent) => void): void;
3777
3786
 
@@ -16582,6 +16582,11 @@ export namespace Protocol {
16582
16582
  * The stage of the request can be determined by presence of responseErrorReason
16583
16583
  * and responseStatusCode -- the request is at the response stage if either
16584
16584
  * of these fields is present and in the request stage otherwise.
16585
+ * Redirect responses and subsequent requests are reported similarly to regular
16586
+ * responses and requests. Redirect responses may be distinguished by the value
16587
+ * of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with
16588
+ * presence of the `location` header. Requests resulting from a redirect will
16589
+ * have `redirectedRequestId` field set.
16585
16590
  */
16586
16591
  export interface RequestPausedEvent {
16587
16592
  /**