puppeteer/assets/js/12b14b3e.83a71d14.js
2021-10-07 15:21:45 +00:00

1 line
5.0 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[36315],{3905:function(e,t,r){r.d(t,{Zo:function(){return l},kt:function(){return m}});var n=r(67294);function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t){if(null==e)return{};var r,n,p=function(e,t){if(null==e)return{};var r,n,p={},u=Object.keys(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||(p[r]=e[r]);return p}(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(p[r]=e[r])}return p}var i=n.createContext({}),c=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):a(a({},t),e)),r},l=function(e){var t=c(e.components);return n.createElement(i.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,p=e.mdxType,u=e.originalType,i=e.parentName,l=o(e,["components","mdxType","originalType","parentName"]),d=c(r),m=p,f=d["".concat(i,".").concat(m)]||d[m]||s[m]||u;return r?n.createElement(f,a(a({ref:t},l),{},{components:r})):n.createElement(f,a({ref:t},l))}));function m(e,t){var r=arguments,p=t&&t.mdxType;if("string"==typeof e||p){var u=r.length,a=new Array(u);a[0]=d;var o={};for(var i in t)hasOwnProperty.call(t,i)&&(o[i]=t[i]);o.originalType=e,o.mdxType="string"==typeof e?e:p,a[1]=o;for(var c=2;c<u;c++)a[c]=r[c];return n.createElement.apply(null,a)}return n.createElement.apply(null,r)}d.displayName="MDXCreateElement"},90345:function(e,t,r){r.r(t),r.d(t,{frontMatter:function(){return o},contentTitle:function(){return i},metadata:function(){return c},toc:function(){return l},default:function(){return d}});var n=r(87462),p=r(63366),u=(r(67294),r(3905)),a=["components"],o={},i=void 0,c={unversionedId:"puppeteer.httprequest.enqueueinterceptaction",id:"version-10.1.0/puppeteer.httprequest.enqueueinterceptaction",isDocsHomePage:!1,title:"puppeteer.httprequest.enqueueinterceptaction",description:"Home &gt; puppeteer &gt; HTTPRequest &gt; enqueueInterceptAction",source:"@site/versioned_docs/version-10.1.0/puppeteer.httprequest.enqueueinterceptaction.md",sourceDirName:".",slug:"/puppeteer.httprequest.enqueueinterceptaction",permalink:"/puppeteer/docs/puppeteer.httprequest.enqueueinterceptaction",editUrl:"https://github.com/facebook/puppeteer/edit/main/website/versioned_docs/version-10.1.0/puppeteer.httprequest.enqueueinterceptaction.md",version:"10.1.0",frontMatter:{}},l=[{value:"HTTPRequest.enqueueInterceptAction() method",id:"httprequestenqueueinterceptaction-method",children:[]},{value:"Parameters",id:"parameters",children:[]}],s={toc:l};function d(e){var t=e.components,r=(0,p.Z)(e,a);return(0,u.kt)("wrapper",(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,u.kt)("p",null,(0,u.kt)("a",{parentName:"p",href:"/puppeteer/docs/index"},"Home")," ",">"," ",(0,u.kt)("a",{parentName:"p",href:"/puppeteer/docs/puppeteer"},"puppeteer")," ",">"," ",(0,u.kt)("a",{parentName:"p",href:"/puppeteer/docs/puppeteer.httprequest"},"HTTPRequest")," ",">"," ",(0,u.kt)("a",{parentName:"p",href:"/puppeteer/docs/puppeteer.httprequest.enqueueinterceptaction"},"enqueueInterceptAction")),(0,u.kt)("h2",{id:"httprequestenqueueinterceptaction-method"},"HTTPRequest.enqueueInterceptAction() method"),(0,u.kt)("p",null,"Adds an async request handler to the processing queue. Deferred handlers are not guaranteed to execute in any particular order, but they are guarnateed to resolve before the request interception is finalized."),(0,u.kt)("b",null,"Signature:"),(0,u.kt)("pre",null,(0,u.kt)("code",{parentName:"pre",className:"language-typescript"},"enqueueInterceptAction(pendingHandler: () => void | PromiseLike<unknown>): void;\n")),(0,u.kt)("h2",{id:"parameters"},"Parameters"),(0,u.kt)("table",null,(0,u.kt)("thead",{parentName:"table"},(0,u.kt)("tr",{parentName:"thead"},(0,u.kt)("th",{parentName:"tr",align:null},"Parameter"),(0,u.kt)("th",{parentName:"tr",align:null},"Type"),(0,u.kt)("th",{parentName:"tr",align:null},"Description"))),(0,u.kt)("tbody",{parentName:"table"},(0,u.kt)("tr",{parentName:"tbody"},(0,u.kt)("td",{parentName:"tr",align:null},"pendingHandler"),(0,u.kt)("td",{parentName:"tr",align:null},"() =",">"," void ","|"," PromiseLike","<","unknown",">"),(0,u.kt)("td",{parentName:"tr",align:null})))),(0,u.kt)("b",null,"Returns:"),(0,u.kt)("p",null,"void"))}d.isMDXComponent=!0}}]);