continueRequest method
Continues the request, optionally modifying some of its parameters.
requestId
An id the client received in requestPaused event.
url
If set, the request url will be modified in a way that's not observable by page.
method
If set, the request method is overridden.
postData
If set, overrides the post data in the request.
headers
If set, overrides the request headers. Note that the overrides do not
extend to subsequent redirect hops, if a redirect happens. Another override
may be applied to a different request produced by a redirect.
interceptResponse
If set, overrides response interception behavior for this request.
Implementation
Future<void> continueRequest(RequestId requestId,
{String? url,
String? method,
String? postData,
List<HeaderEntry>? headers,
bool? interceptResponse}) async {
await _client.send('Fetch.continueRequest', {
'requestId': requestId,
if (url != null) 'url': url,
if (method != null) 'method': method,
if (postData != null) 'postData': postData,
if (headers != null) 'headers': [...headers],
if (interceptResponse != null) 'interceptResponse': interceptResponse,
});
}