wiztools / rest-client

Tool to test HTTP/RESTful webservices.
Apache License 2.0
1.53k stars 372 forks source link

Auto-format Response body #56

Open ehossack opened 8 years ago

ehossack commented 8 years ago

[Specific to UI]

Could be searching for the presence of an open xml tag, or an open curly brace for json, or an html block

OR

Based on the Accept header, apply that formatting.

Would be easier than constantly right-clicking and applying formatting. A nice-to-have.

ehossack commented 8 years ago

To clarify, if Content-Type is not specified or does not match properly no formatting is applied. The definitions for this can be found in HttpUtil.java

Cyrille37 commented 5 years ago

On response's header Content-Type like "Content-Type: application/json"