Skip to content

Configure simple --json #1486

@znd4

Description

@znd4

Checklist

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or enhancementnewNeeds triage. Comments are welcome!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions