-
Notifications
You must be signed in to change notification settings - Fork 24
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
Test a plain text response content #100
base: master
Are you sure you want to change the base?
Conversation
bystro
commented
Sep 17, 2018
- Testing if a plain text value of response content is desirable
- Testing if a plain text value of response content is empty
Hello @bystro ! I'm not sure to get the issue. You want to test plain text response ? What is the use case ? I am not convinced of the interest of adding it to the project. As you did, you can easily do it at your application level, so may be it is enough ? |
@tyx Ajax's XMLHttpRequest has it in If you return only one value(for example generated UUID) it is convenient to return it responseText as plain text string instead of json with only one property. We can think about better communication the issue maybe? |
Thanks for the details ! At the origin, we wanted to have an extension to help us to test rest api. So XMLHttpRequest stuff was not in the initial scope, and I'm sure other extension make this job no? But if many people use this one to other stuff that testing rest api, we can consider to extend the initial scope may be. Need to think about it. |
Regarding to XMLHttpRequest it was only an example. My example use case is the following. |