What does it mean that HTTPRequest.postData is deprecated in Puppeteer?
PuppeteerThe deprecation note indicates that the HTTPRequest.postData API is deprecated in Puppeteer. This means you should avoid using it in new code and plan to migrate away from it, as it may be removed in a future Puppeteer release. The issue updates the docs to reflect this deprecation and does not remove the API immediately.
If you need to inspect request payloads, rely on other aspects of the Request data (such as URL and headers) and handle payloads via alternative flows. For example:
page.on('request', req => { console.log(req.url(), req.method(), req.headers()); // do not call req.postData() });
This keeps your code future-proof while you adapt to the deprecation.