Downloading JSON and YAML files while crawling with Playwright

Hi there. Is it possible to detect the
Content-Type
header of responses and download JSON or YAML files? I'm using Playwright to crawl my sites and have some JSON and YAML content I would like to capture, as well.
Was this page helpful?