Skip to content

Feature proposal: saving current request setup under named alias #70

@fogine

Description

@fogine

This is great package, thanks for sharing your work!

As I've been using it couple of days I noticed that it's quite inconvenient, having to repeatedly change request settings every time I want to send different request.
The option of saving current state of request would solve the problem.

Given this output of httpie post:

http://127.0.0.1:3000/api/oauth/token> http --form --style native POST http://127.0.0.1:3000/api/oauth/token user_id==value client_id=value client_secret=value grant_type=password password=test  username=testuser1 Content-Type:application/x-www-form-urlencoded

We could use eg.: http://127.0.0.1:3000/api/oauth/token> alias getToken

which would save the request under getToken keyword. Later, we could call getToken request and optionally overwrite any req options like so:

http://127.0.0.1:3000/api/oauth/token> getToken username=testuser2 password=test2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions