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

Allow returning to previous URI #133

Open
dibenso opened this issue Sep 14, 2015 · 3 comments
Open

Allow returning to previous URI #133

dibenso opened this issue Sep 14, 2015 · 3 comments

Comments

@dibenso
Copy link
Member

dibenso commented Sep 14, 2015

It would be useful to have a command that is capable of taking the current request uri to the previous one. Like how the back button works in a browser.

@njonsson njonsson changed the title Allow returning to previous uri Allow returning to previous URI Sep 17, 2015
@njonsson
Copy link
Member

Fair enough. I think a back command ought to be synonymous with reuse N where N is the current history index minus 1. In this way, back would not issue a request. You could go back multiple times, essentially traversing the address and headers of your history. It might make the most sense to disable the response-* commands after a back until another request is made, in order to avoid confusion.

Your thoughts?

@dibenso
Copy link
Member Author

dibenso commented Sep 18, 2015

Sounds good with me. You're right, there would be no reason to get a new response when it already exists in history.

@presskey
Copy link
Member

It would be good to create separate ticket for *-response commands behavior. At the moment after reuse they still return data of last request with response when it makes more sense to use response of reused request or return nil at all.

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