Any way to alter a response to return extra (programmatically) calculated data? #2451
Unanswered
starkmarkler
asked this question in
Q&A
Replies: 1 comment 1 reply
-
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.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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