You can then copy the text and paste it into a simple text editor.
: Set the Content-Type header to text/plain and the Content-Disposition to attachment; filename="cccc.txt" to force the browser to download the response as a file. Download cccc txt
: Create a Blob from your text data and use URL.createObjectURL() to make a clickable download link. You can then copy the text and paste