add optional 'headers' param to allow for {'Accept-Encoding': 'gzip, deflate'} and other custom headers