cli icon indicating copy to clipboard operation
cli copied to clipboard

Configure simple --json

Open znd4 opened this issue 2 years ago • 0 comments

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

…

znd4 avatar Mar 14 '23 20:03 znd4