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

Body Response in HTML #3

Closed
tompap opened this issue Jan 19, 2011 · 8 comments
Closed

Body Response in HTML #3

tompap opened this issue Jan 19, 2011 · 8 comments

Comments

@tompap
Copy link

tompap commented Jan 19, 2011

Hello, I wanted to submit a request, but I found only the bug part available.

Would it be possible to activate a tab to see the "Body Response" in HTML.

I am using your plugin for a REST application using DJANGO framework. When an error occurs in django the Body Response is a HTML page that explains the ERROR.

Currently I need to copy paste the HTML content, to a HTML Editor to be able to read the ERROR.

@chao
Copy link
Owner

chao commented Jan 20, 2011

Okay, I will consider to implement this.

@stiak
Copy link
Contributor

stiak commented Jan 20, 2011

I had a bash at showing the rendered HTML in the "Response Body with Syntax Highlight" tab on my fork. I'm not sure it's the right place for it to be displayed and I've restricted what the content can do quite a bit.

@tompap
Copy link
Author

tompap commented Jan 20, 2011

Excellent ! I just tested your fork with the HTML and it's working great !

@chao
Copy link
Owner

chao commented Jan 21, 2011

@stiak:
Maybe we should add an extras tab for viewing web page when the returned result is "text/html"?

@stiak
Copy link
Contributor

stiak commented Jan 21, 2011

@chao: I tried adding another tab for viewing the response image. It gets a little confusing trying to find the output as one of the tabs is always empty. Maybe we could update the tab label based on the response type?

That way if you're using a service that returns, say, JSON when successful or HTML on errors you can leave the same tab open and see a nicely formatted result regardless of how the request went.

So default label would be "Response Body with Syntax Highlight", any image would cause it to rename to "Image" and a html response would be "Rendered HTML".

Any thoughts?

@tompap
Copy link
Author

tompap commented Jan 21, 2011

That's a good idea !

@chao
Copy link
Owner

chao commented Jan 22, 2011

@stiak: I think that's a great idea, maybe the UI could be looked like fiddler2 (see: http://www.fiddler2.com/Fiddler2/images/syntaxview.png). Except we only need to show related tabs according to different content-type.

For example: show tab "Header", "TextView", "SyntaxView" and "WebView" for "text/html".
And show tab "Header", "TextView", "ImageView" for all images.

@chao
Copy link
Owner

chao commented Feb 4, 2011

Hi guys I'm going to close this issue.
Again, many thanks to stiak ;)

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants