python-hyper / hyper

HTTP/2 for Python.
http://hyper.rtfd.org/en/latest/
MIT License
1.05k stars 191 forks source link

Add '@=' separator to pass JSON objects via CLI #386

Open agoconcept opened 6 years ago

agoconcept commented 6 years ago

The current '=' separator enables to add key-value pairs as strings in a JSON object to the HTTP body. But there's no way to provide more complex JSON objects

This commit introduces a new '@=' that adds a key-value pair where the right value is evaluated to a JSON object, allowing more complex structures in the HTTP body.

Change-Id: I126a6c8529a6dbf9108b904b2b4d93ef60309113

agoconcept commented 6 years ago

Is there any additional change needed to accept the pull request? In case anything else is needed please don't hesitate to ask for it

Cheers!