Code Monkey home page Code Monkey logo

Comments (8)

chao avatar chao commented on August 10, 2024

Okay, I will consider to implement this.

from restclient.

stiak avatar stiak commented on August 10, 2024

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.

from restclient.

tompap avatar tompap commented on August 10, 2024

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

from restclient.

chao avatar chao commented on August 10, 2024

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

from restclient.

stiak avatar stiak commented on August 10, 2024

@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?

from restclient.

tompap avatar tompap commented on August 10, 2024

That's a good idea !

from restclient.

chao avatar chao commented on August 10, 2024

@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.

from restclient.

chao avatar chao commented on August 10, 2024

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

from restclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.