10x Developer
Search…
HTTP

HTTP Header

How to force download?
1
res.writeHead(200, {
2
'Content-Type': 'application/pdf',
3
'Content-Disposition': 'attachment; filename=out.pdf'
4
});
Copied!
Copy link