"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[29890],{3905:(e,t,r)=>{r.d(t,{Zo:()=>l,kt:()=>m});var n=r(67294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(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 s(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var u=n.createContext({}),i=function(e){var t=n.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):s(s({},t),e)),r},l=function(e){var t=i(e.components);return n.createElement(u.Provider,{value:t},e.children)},c={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,p=e.originalType,u=e.parentName,l=a(e,["components","mdxType","originalType","parentName"]),f=i(r),m=o,d=f["".concat(u,".").concat(m)]||f[m]||c[m]||p;return r?n.createElement(d,s(s({ref:t},l),{},{components:r})):n.createElement(d,s({ref:t},l))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var p=r.length,s=new Array(p);s[0]=f;var a={};for(var u in t)hasOwnProperty.call(t,u)&&(a[u]=t[u]);a.originalType=e,a.mdxType="string"==typeof e?e:o,s[1]=a;for(var i=2;i{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>s,default:()=>c,frontMatter:()=>p,metadata:()=>a,toc:()=>i});var n=r(87462),o=(r(67294),r(3905));const p={sidebar_label:"HTTPRequest.responseForRequest"},s="HTTPRequest.responseForRequest() method",a={unversionedId:"api/puppeteer.httprequest.responseforrequest",id:"version-17.1.1/api/puppeteer.httprequest.responseforrequest",title:"HTTPRequest.responseForRequest() method",description:"Signature:",source:"@site/versioned_docs/version-17.1.1/api/puppeteer.httprequest.responseforrequest.md",sourceDirName:"api",slug:"/api/puppeteer.httprequest.responseforrequest",permalink:"/api/puppeteer.httprequest.responseforrequest",draft:!1,tags:[],version:"17.1.1",frontMatter:{sidebar_label:"HTTPRequest.responseForRequest"},sidebar:"sidebar",previous:{title:"HTTPRequest.response",permalink:"/api/puppeteer.httprequest.response"},next:{title:"HTTPRequest.url",permalink:"/api/puppeteer.httprequest.url"}},u={},i=[],l={toc:i};function c(e){let{components:t,...r}=e;return(0,o.kt)("wrapper",(0,n.Z)({},l,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"httprequestresponseforrequest-method"},"HTTPRequest.responseForRequest() method"),(0,o.kt)("p",null,(0,o.kt)("strong",{parentName:"p"},"Signature:")),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-typescript"},"class HTTPRequest {\n responseForRequest(): Partial | null;\n}\n")),(0,o.kt)("p",null,(0,o.kt)("strong",{parentName:"p"},"Returns:")),(0,o.kt)("p",null,"Partial","<",(0,o.kt)("a",{parentName:"p",href:"/api/puppeteer.responseforrequest"},"ResponseForRequest"),">"," ","|"," null"),(0,o.kt)("p",null,"The ",(0,o.kt)("inlineCode",{parentName:"p"},"ResponseForRequest")," that gets used if the interception is allowed to respond (ie, ",(0,o.kt)("inlineCode",{parentName:"p"},"abort()")," is not called)."))}c.isMDXComponent=!0}}]);