5 ms·
Just saw your other comment! The /function call looks interesting. Would I be able to use puppeteer’s request intercept API with it? A bit more on my use case:
by leesalminen 8y ago
Just saw your other comment! The /function call looks interesting. Would I be able to use puppeteer’s request intercept API with it?
A bit more on my use case: currently using pdf.js for rendering HTML reports as a PDF. It’s been a pain. I’d like to essentially take the HTML of some (say, just a <table>) or all (full HTML doc) of the current page and send it off. The main gotcha I can think of is relative URLs but intercept request would resolve that.
- mrskitch 8y agoYes: anything available on the `page` object is available in the /function route, so request interception is available!