Any way to alter a response to return extra (programmatically) calculated data? #2451
Unanswered
starkmarkler
asked this question in
Q&A
Replies: 1 comment
-
Its not documented, but you can overwrite res.res.data = '{"overwridden": "body"}';
res.res.headers['content-type'] = 'application/json'; Overwritting the content-type header will ensure the response body is correctly formatted. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I work with a ton of time series data. I'd love to convert all my epoch responses into a human readable date. Is it possible to alter (append) the response to do this? I recognize that it would have to be programmatic, and that's totally fine.
Thanks,
Ryan
Beta Was this translation helpful? Give feedback.
All reactions