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.67k stars 3.68k forks source link

Filter response keys before print result to the screen #1550

Open d0niek opened 5 months ago

d0niek commented 5 months ago

Checklist


Enhancement request

It would be nice to have an option which allows to remove some key(s) from response before it will be print to the screen.


Problem it solves

I'm always frustrated when I have to scroll my screen up every time when the response is long. In some testcase(s) I'm interesting in a specific json key(s) and response header but some of the key(s) has really looong content and I don't care of it.


Additional information, screenshots, or code examples

It would be nice to have an option --filter-keys foo,bar.boo which will remove those keys from response before it will be well formatted.