add get handler to download the response as a json file
print a link to the end of the page to download the request as a file