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.71k stars 3.67k forks source link

Configure simple --json #1486

Open znd4 opened 1 year ago

znd4 commented 1 year ago

Checklist


Enhancement request

I'd like to be able to configure http s.t., if I

http --json http://some.server.foo

it will send Accept as exactly application/json.


Problem it solves

Some servers don't correctly implement the media-type spec, instead using something like get_header("Accept") == "application/json", and it'd be nice to not have to switch to adding Accept: application/json.


Additional information, screenshots, or code examples