cli
cli copied to clipboard
Configure simple --json
Checklist
- [x] I've searched for similar feature requests.
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
…