title: Puppeteer - set navigation timeout for intercepted request
body: <p>The script perform navigation to a given HTML string, representing web page. There is the function which works with intercepted requests and <code>abort</code> those, which types are not allowed. For all other requests, which request <code>continue</code>, I would like to set particular timeout, different from page load timeout (Script doesn't set it, but default <code>goto</code> timeout is 30 sec). For example if resource type is <code>'image'</code> I would like to wait no more that 5 sec and after abort the request. The following is the script snippet ...
  </p>
  
  <pre><code>await page.setRequestInterception(true);
  let firstDocument = true;
  page.on('request', interceptedRequest =&gt; {
      const resType = interceptedRequest.resourceType();
      if ((resType === "document" &amp;&amp; firstDocument) || settings.getAllowedResourceTypes().indexOf(resType) !== -1) {
          if (resType === "document") {
              firstDocument = false;
          }
          interceptedRequest.continue();
      } else {
          interceptedRequest.abort();
      }
  });
  await page.goto(`data:text/html;charset=UTF-8,${html}`, { waitUntil: 'networkidle0' }).catch((e) =&gt; { logger.warn(e, "Unable to load HTML page content."); });
  // ... move on with HTML processing
  </code></pre>
  
  <p>Is this possible to set timeout for particular intercepted request only?</p>