continueInterceptedRequest method
- @Deprecated('use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead')
- InterceptionId interceptionId, {
- ErrorReason? errorReason,
- String? rawResponse,
- String? url,
- String? method,
- String? postData,
- Headers? headers,
- AuthChallengeResponse? authChallengeResponse,
Response to Network.requestIntercepted which either modifies the request to continue with any
modifications, or blocks it, or completes it with the provided response bytes. If a network
fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted
event will be sent with the same InterceptionId.
Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.
errorReason
If set this causes the request to fail with the given reason. Passing Aborted
for requests
marked with isNavigationRequest
also cancels the navigation. Must not be set in response
to an authChallenge.
rawResponse
If set the requests completes using with the provided base64 encoded raw response, including
HTTP status line and headers etc... Must not be set in response to an authChallenge.
url
If set the request url will be modified in a way that's not observable by page. Must not be
set in response to an authChallenge.
method
If set this allows the request method to be overridden. Must not be set in response to an
authChallenge.
postData
If set this allows postData to be set. Must not be set in response to an authChallenge.
headers
If set this allows the request headers to be changed. Must not be set in response to an
authChallenge.
authChallengeResponse
Response to a requestIntercepted with an authChallenge. Must not be set otherwise.
Implementation
@Deprecated(
'use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead')
Future<void> continueInterceptedRequest(InterceptionId interceptionId,
{ErrorReason? errorReason,
String? rawResponse,
String? url,
String? method,
String? postData,
Headers? headers,
AuthChallengeResponse? authChallengeResponse}) async {
await _client.send('Network.continueInterceptedRequest', {
'interceptionId': interceptionId,
if (errorReason != null) 'errorReason': errorReason,
if (rawResponse != null) 'rawResponse': rawResponse,
if (url != null) 'url': url,
if (method != null) 'method': method,
if (postData != null) 'postData': postData,
if (headers != null) 'headers': headers,
if (authChallengeResponse != null)
'authChallengeResponse': authChallengeResponse,
});
}