puppeteer/assets/js/ad5f305e.e1d41eec.js
2021-10-07 15:21:45 +00:00

1 line
4.5 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[64181],{3905:function(e,t,r){r.d(t,{Zo:function(){return a},kt:function(){return d}});var p=r(67294);function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);t&&(p=p.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,p)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t){if(null==e)return{};var r,p,n=function(e,t){if(null==e)return{};var r,p,n={},o=Object.keys(e);for(p=0;p<o.length;p++)r=o[p],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(p=0;p<o.length;p++)r=o[p],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var s=p.createContext({}),i=function(e){var t=p.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):u(u({},t),e)),r},a=function(e){var t=i(e.components);return p.createElement(s.Provider,{value:t},e.children)},l={inlineCode:"code",wrapper:function(e){var t=e.children;return p.createElement(p.Fragment,{},t)}},f=p.forwardRef((function(e,t){var r=e.components,n=e.mdxType,o=e.originalType,s=e.parentName,a=c(e,["components","mdxType","originalType","parentName"]),f=i(r),d=n,y=f["".concat(s,".").concat(d)]||f[d]||l[d]||o;return r?p.createElement(y,u(u({ref:t},a),{},{components:r})):p.createElement(y,u({ref:t},a))}));function d(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var o=r.length,u=new Array(o);u[0]=f;var c={};for(var s in t)hasOwnProperty.call(t,s)&&(c[s]=t[s]);c.originalType=e,c.mdxType="string"==typeof e?e:n,u[1]=c;for(var i=2;i<o;i++)u[i]=r[i];return p.createElement.apply(null,u)}return p.createElement.apply(null,r)}f.displayName="MDXCreateElement"},48101:function(e,t,r){r.r(t),r.d(t,{frontMatter:function(){return c},contentTitle:function(){return s},metadata:function(){return i},toc:function(){return a},default:function(){return f}});var p=r(87462),n=r(63366),o=(r(67294),r(3905)),u=["components"],c={},s=void 0,i={unversionedId:"puppeteer.httprequest.resourcetype",id:"version-10.0.0/puppeteer.httprequest.resourcetype",isDocsHomePage:!1,title:"puppeteer.httprequest.resourcetype",description:"Home &gt; puppeteer &gt; HTTPRequest &gt; resourceType",source:"@site/versioned_docs/version-10.0.0/puppeteer.httprequest.resourcetype.md",sourceDirName:".",slug:"/puppeteer.httprequest.resourcetype",permalink:"/puppeteer/docs/10.0.0/puppeteer.httprequest.resourcetype",editUrl:"https://github.com/facebook/puppeteer/edit/main/website/versioned_docs/version-10.0.0/puppeteer.httprequest.resourcetype.md",version:"10.0.0",frontMatter:{},sidebar:"version-10.0.0/docs",previous:{title:"puppeteer.httprequest.redirectchain",permalink:"/puppeteer/docs/10.0.0/puppeteer.httprequest.redirectchain"},next:{title:"puppeteer.httprequest.respond",permalink:"/puppeteer/docs/10.0.0/puppeteer.httprequest.respond"}},a=[{value:"HTTPRequest.resourceType() method",id:"httprequestresourcetype-method",children:[]}],l={toc:a};function f(e){var t=e.components,r=(0,n.Z)(e,u);return(0,o.kt)("wrapper",(0,p.Z)({},l,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("p",null,(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/10.0.0/index"},"Home")," ",">"," ",(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/10.0.0/puppeteer"},"puppeteer")," ",">"," ",(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/10.0.0/puppeteer.httprequest"},"HTTPRequest")," ",">"," ",(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/10.0.0/puppeteer.httprequest.resourcetype"},"resourceType")),(0,o.kt)("h2",{id:"httprequestresourcetype-method"},"HTTPRequest.resourceType() method"),(0,o.kt)("p",null,"Contains the request's resource type as it was perceived by the rendering engine."),(0,o.kt)("b",null,"Signature:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-typescript"},"resourceType(): ResourceType;\n")),(0,o.kt)("b",null,"Returns:"),(0,o.kt)("p",null,(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/10.0.0/puppeteer.resourcetype"},"ResourceType")))}f.isMDXComponent=!0}}]);