Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Change response body before showing it: res.setBody() #2441

Open
1 task done
marc0l92 opened this issue Jun 11, 2024 · 0 comments
Open
1 task done
Labels
enhancement New feature or request

Comments

@marc0l92
Copy link

marc0l92 commented Jun 11, 2024

I have checked the following:

  • I've searched existing issues and found nothing related to my issue.

Describe the feature you want to add

I have a service that replies in base64 and I would like to intercept and modify the response body in order to decode it before it gets display.

There is a way to read the response body from the post response script using the function res.getBody(), but there is nothing to set it (like we have in the request body).

Could it be possible to implement the res.setBody() in order to override the body message displayed in the response panel?

The workaround I'm currently using is to print the decoded response in the console using console.log, but it will be more clean to show it directly in the response panel

@marc0l92 marc0l92 added the enhancement New feature or request label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant