Comments (7)
Should the browser then replay the whole request history? That could be slow and convoluted.
Or do you just want to see a rendering of the *HTML in response body, as it is?
from htty.
The latter. I’m thinking maybe we write the body of the response (or the request) to a temp file and then launch the default browser to view it.
from htty.
Sounds somewhat useful, but that's not going to allow JS running in that page to access cookie/session storage, or resources that are linked relative to the original domain.
from htty.
Agreed. I was thinking of this as a WYSIWYG preview rather than “let me start using the browser where htty left off.”
Perhaps that makes it more annoying than useful.
Would it be better to attempt a Lynx-style text-only rendering of the markup?
from htty.
If you do that (and a couple more things, like curses, and general usability) – and that's not a small task, but if you would set out to – you would be getting SEO/crawler/accessibility so much easier. This could later be extended to request sequences that can be replayed by HTTY, by the text-only browser, and by the default graphical browser. And those sequences could become trees, with multiple routes you could take, etc.
And then you'd solve the World in 42 steps.
The WYSIWYG preview is really just fine. It's a visualisation of the response body, nothing more; it is useful on it's own. Not plenty useful, but nice to have.
You should choose your battles.
from htty.
See http://github.com/htty/htty/issues/#issue/17.
from htty.
v1.3.0 (just released) includes new commands body-request-open
and body-response-open
for launching the default viewer assigned to the content type. Options allow you to override the default viewer launched (e.g., use Firefox instead of Chrome).
from htty.
Related Issues (20)
- Add UI test coverage using Aruba Cucumber features
- Following relative URLs is not an idempotent operation HOT 3
- `query-remove` without a request blows up HOT 1
- body-from-file command
- Commands with multiline input
- Slashes in `cd` command are URL-encoded HOT 7
- Cursor misbehaves if prompt line is larger than terminal width HOT 2
- Proxy support HOT 2
- `strip!': can't modify frozen String (RuntimeError) HOT 1
- Monospace font for code/pre on the site HOT 1
- Transition to Ruby v2.x HOT 1
- Allow returning to previous URI HOT 3
- Accessible examples HOT 3
- Allow patch to send body HOT 1
- Non-Basic Authorization header doesn’t persist after changing path HOT 3
- Ruby v2.1 breaks `body-response-open` and `body-request-open` due to change in temp file extension
- Report response times HOT 2
- Add a command for pretty-printing JSON
- Uninitialized constant HTTY::CLI::HTTPMethodCommand::OpenSSL on a fresh install HOT 4
- Set a default configuration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from htty.