puppeteer/assets/js/7657732a.6f5d6913.js
release-please[bot] b6302b6510 deploy: a63b8305ac
2024-04-05 13:15:22 +00:00

2 lines
3.3 KiB
JavaScript

/*! For license information please see 7657732a.6f5d6913.js.LICENSE.txt */
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[58634],{86498:(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.6.3/api/puppeteer.httprequest.haspostdata.md",sourceDirName:"api",slug:"/api/puppeteer.httprequest.haspostdata",permalink:"/api/puppeteer.httprequest.haspostdata",draft:!1,unlisted:!1,tags:[],version:"22.6.3",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)}}}]);