puppeteer/assets/js/24f392c6.44b5daca.js
release-please[bot] 727a3c9d44 deploy: 9ddfa5314c
2024-02-26 10:19:27 +00:00

2 lines
3.3 KiB
JavaScript

/*! For license information please see 24f392c6.44b5daca.js.LICENSE.txt */
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[84997],{67216:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>i,contentTitle:()=>o,default:()=>d,frontMatter:()=>n,metadata:()=>p,toc:()=>u});var s=a(85893),r=a(11151);const n={sidebar_label:"HTTPRequest.hasPostData"},o="HTTPRequest.hasPostData() method",p={id:"api/puppeteer.httprequest.haspostdata",title:"HTTPRequest.hasPostData() method",description:"True when the request has POST data. Note that HTTPRequest.postData() might still be undefined when this flag is true when the data is too long or not readily available in the decoded form. In that case, use HTTPRequest.fetchPostData().",source:"@site/versioned_docs/version-22.3.0/api/puppeteer.httprequest.haspostdata.md",sourceDirName:"api",slug:"/api/puppeteer.httprequest.haspostdata",permalink:"/api/puppeteer.httprequest.haspostdata",draft:!1,unlisted:!1,tags:[],version:"22.3.0",frontMatter:{sidebar_label:"HTTPRequest.hasPostData"},sidebar:"api",previous:{title:"HTTPRequest.frame",permalink:"/api/puppeteer.httprequest.frame"},next:{title:"HTTPRequest.headers",permalink:"/api/puppeteer.httprequest.headers"}},i={},u=[{value:"Signature:",id:"signature",level:4}];function h(e){const t={a:"a",code:"code",h1:"h1",h4:"h4",p:"p",pre:"pre",strong:"strong",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h1,{id:"httprequesthaspostdata-method",children:"HTTPRequest.hasPostData() method"}),"\n",(0,s.jsxs)(t.p,{children:["True when the request has POST data. Note that ",(0,s.jsx)(t.a,{href:"/api/puppeteer.httprequest.postdata",children:"HTTPRequest.postData()"})," might still be undefined when this flag is true when the data is too long or not readily available in the decoded form. In that case, use ",(0,s.jsx)(t.a,{href:"/api/puppeteer.httprequest.fetchpostdata",children:"HTTPRequest.fetchPostData()"}),"."]}),"\n",(0,s.jsx)(t.h4,{id:"signature",children:"Signature:"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-typescript",children:"class HTTPRequest {\n abstract hasPostData(): boolean;\n}\n"})}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.strong,{children:"Returns:"})}),"\n",(0,s.jsx)(t.p,{children:"boolean"})]})}function d(e={}){const{wrapper:t}={...(0,r.a)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},75251:(e,t,a)=>{var s=a(67294),r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,p=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,a){var s,n={},u=null,h=null;for(s in void 0!==a&&(u=""+a),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(h=t.ref),t)o.call(t,s)&&!i.hasOwnProperty(s)&&(n[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===n[s]&&(n[s]=t[s]);return{$$typeof:r,type:e,key:u,ref:h,props:n,_owner:p.current}}t.Fragment=n,t.jsx=u,t.jsxs=u},85893:(e,t,a)=>{e.exports=a(75251)},11151:(e,t,a)=>{a.d(t,{Z:()=>p,a:()=>o});var s=a(67294);const r={},n=s.createContext(r);function o(e){const t=s.useContext(n);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function p(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),s.createElement(n.Provider,{value:t},e.children)}}}]);