httpie / cli

🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
https://httpie.io
BSD 3-Clause "New" or "Revised" License
32.74k stars 3.68k forks source link

Allow flags to be specified after method #1433

Open asportnoy opened 1 year ago

asportnoy commented 1 year ago

Checklist


Enhancement request

Allow flags to be specified after the method or URL, for example http post -f example.com ...

Problem it solves

It's more human-readable than putting flags after the command. For example, "Make an HTTP post request with a form to example.com", compared to "Make an HTTP request with a form using a post request to example.com" Being able to write it in the order I'd say it out loud (or the order I'm thinking of it in my head) provides a better user experience. Of course, having the flag right after the command could still be accepted. I know you can also have the flag after the URL, but in my opinion this is better, and it shouldn't hurt anything to have another option.


Additional information, screenshots, or code examples

N/A