Skip to content

Commit be751ff

Browse files
author
Jakub Kulhan
committed
autoupdated protocol.json & generated files
1 parent e6a55b7 commit be751ff

6 files changed

Lines changed: 43 additions & 7 deletions

File tree

gen-src/ChromeDevtoolsProtocol/Model/Fetch/ContinueRequestRequest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ final class ContinueRequestRequest implements \JsonSerializable
4646
*/
4747
public $headers;
4848

49+
/**
50+
* If set, overrides response interception behavior for this request.
51+
*
52+
* @var bool|null
53+
*/
54+
public $interceptResponse;
55+
4956

5057
public static function fromJson($data)
5158
{
@@ -68,6 +75,9 @@ public static function fromJson($data)
6875
$instance->headers[] = HeaderEntry::fromJson($item);
6976
}
7077
}
78+
if (isset($data->interceptResponse)) {
79+
$instance->interceptResponse = (bool)$data->interceptResponse;
80+
}
7181
return $instance;
7282
}
7383

@@ -93,6 +103,9 @@ public function jsonSerialize()
93103
$data->headers[] = $item->jsonSerialize();
94104
}
95105
}
106+
if ($this->interceptResponse !== null) {
107+
$data->interceptResponse = $this->interceptResponse;
108+
}
96109
return $data;
97110
}
98111

gen-src/ChromeDevtoolsProtocol/Model/Fetch/ContinueRequestRequestBuilder.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ final class ContinueRequestRequestBuilder
1616
private $method;
1717
private $postData;
1818
private $headers;
19+
private $interceptResponse;
1920

2021

2122
/**
@@ -32,6 +33,7 @@ public function build(): ContinueRequestRequest
3233
$instance->method = $this->method;
3334
$instance->postData = $this->postData;
3435
$instance->headers = $this->headers;
36+
$instance->interceptResponse = $this->interceptResponse;
3537
return $instance;
3638
}
3739

@@ -94,4 +96,16 @@ public function setHeaders($headers): self
9496
$this->headers = $headers;
9597
return $this;
9698
}
99+
100+
101+
/**
102+
* @param bool|null $interceptResponse
103+
*
104+
* @return self
105+
*/
106+
public function setInterceptResponse($interceptResponse): self
107+
{
108+
$this->interceptResponse = $interceptResponse;
109+
return $this;
110+
}
97111
}

gen-src/ChromeDevtoolsProtocol/Model/Network/Response.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ final class Response implements \JsonSerializable
4040
public $headers;
4141

4242
/**
43-
* HTTP response headers text.
43+
* HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo.
4444
*
4545
* @var string|null
4646
*/
@@ -61,7 +61,7 @@ final class Response implements \JsonSerializable
6161
public $requestHeaders;
6262

6363
/**
64-
* HTTP request headers text.
64+
* HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo.
6565
*
6666
* @var string|null
6767
*/

gen-src/ChromeDevtoolsProtocol/Model/Network/ResponseReceivedExtraInfoEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ final class ResponseReceivedExtraInfoEvent implements \JsonSerializable
4040
public $resourceIPAddressSpace;
4141

4242
/**
43-
* The status code of the response. This is useful in cases the request failed and no responseReceived event is triggered, which is the case for, e.g., CORS errors.
43+
* The status code of the response. This is useful in cases the request failed and no responseReceived event is triggered, which is the case for, e.g., CORS errors. This is also the correct status code for cached requests, where the status in responseReceived is a 200 and this will be 304.
4444
*
4545
* @var int
4646
*/

protocol.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9488,6 +9488,13 @@
94889488
"items": {
94899489
"$ref": "HeaderEntry"
94909490
}
9491+
},
9492+
{
9493+
"name": "interceptResponse",
9494+
"description": "If set, overrides response interception behavior for this request.",
9495+
"experimental": true,
9496+
"optional": true,
9497+
"type": "boolean"
94919498
}
94929499
]
94939500
},
@@ -12982,7 +12989,8 @@
1298212989
},
1298312990
{
1298412991
"name": "headersText",
12985-
"description": "HTTP response headers text.",
12992+
"description": "HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo.",
12993+
"deprecated": true,
1298612994
"optional": true,
1298712995
"type": "string"
1298812996
},
@@ -12999,7 +13007,8 @@
1299913007
},
1300013008
{
1300113009
"name": "requestHeadersText",
13002-
"description": "HTTP request headers text.",
13010+
"description": "HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo.",
13011+
"deprecated": true,
1300313012
"optional": true,
1300413013
"type": "string"
1300513014
},
@@ -15035,7 +15044,7 @@
1503515044
},
1503615045
{
1503715046
"name": "statusCode",
15038-
"description": "The status code of the response. This is useful in cases the request failed and no responseReceived event is triggered, which is the case for, e.g., CORS errors.",
15047+
"description": "The status code of the response. This is useful in cases the request failed and no responseReceived event is triggered, which is the case for, e.g., CORS errors. This is also the correct status code for cached requests, where the status in responseReceived is a 200 and this will be 304.",
1503915048
"type": "integer"
1504015049
},
1504115050
{

protocol.json.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
43a92c5a9258c1a138e9d21da2f0c650 protocol.json
1+
4a069d7422dcfee71fe8bd86dd3601e4 protocol.json

0 commit comments

Comments
 (0)