In short, this allows the ability to modify the headers in the response object res. This is primarily useful to take response contents and convert them to a different content type. Changing the content-type header allows Bruno to render the new response correctly. This reproduces the functionality found in Postman's "visualizer" concept.
Attached is a screenshot demonstrating converting a JSON response of geospatial data into a map view.
Contribution Checklist:
[x] The pull request only addresses one issue or adds one feature.
[x] The pull request does not introduce any breaking changes
[x] I have added screenshots or gifs to help explain the change if applicable.
Description
This adds the functions to enable the features requested in https://github.com/usebruno/bruno/issues/3495
In short, this allows the ability to modify the headers in the response object
res
. This is primarily useful to take response contents and convert them to a different content type. Changing thecontent-type
header allows Bruno to render the new response correctly. This reproduces the functionality found in Postman's "visualizer" concept.Attached is a screenshot demonstrating converting a JSON response of geospatial data into a map view.
Contribution Checklist: