cli icon indicating copy to clipboard operation
cli copied to clipboard

Support a flag/option to delete a named session

Open segevfiner opened this issue 5 years ago • 1 comments

Currently when you need to delete a named session (For example, it has some problem cookies that shouldn't be sent anymore), you need to go to the sessions directory and delete the file by yourself. It would be convenient if httpie had a flag/option/subcommand to delete a named session, e.g. httpie --delete-session=somesession :8080 (Might want it to not also send a request when doing so).

segevfiner avatar Oct 19 '20 18:10 segevfiner

Interesting approach. This makes me notice that we might want to introduce an httpie sessions command to manage session state in a blind way.

For example, currently, we ask users to use ls to list all sessions from a long path, which might be very inconvenient to type everytime you forget the name of the session you are looking for. We could perhaps create httpie sessions list and httpie session delete <name> to startwith, and then extend them further. CC: @jakubroztocil

isidentical avatar Dec 28 '21 11:12 isidentical