You've already forked httpie-cli
mirror of
https://github.com/httpie/cli.git
synced 2025-07-15 01:34:27 +02:00
README
This commit is contained in:
@ -23,7 +23,7 @@ HTTPie is written in Python, and under the hood it uses the excellent
|
|||||||
|
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|gitter| |pypi| |unix_build| |windows_build| |coverage|
|
|pypi| |unix_build| |windows_build| |coverage| |gitter|
|
||||||
|
|
||||||
-----
|
-----
|
||||||
|
|
||||||
@ -389,10 +389,9 @@ both of which can be overwritten:
|
|||||||
You can use ``--json, -j`` to explicitly set ``Accept``
|
You can use ``--json, -j`` to explicitly set ``Accept``
|
||||||
to ``application/json`` regardless of whether you are sending data
|
to ``application/json`` regardless of whether you are sending data
|
||||||
(it's a shortcut for setting the header via the usual header notation –
|
(it's a shortcut for setting the header via the usual header notation –
|
||||||
``http url Accept:application/json``).
|
``http url Accept:application/json``). Additionally,
|
||||||
|
HTTPie will try to detect JSON responses even when the
|
||||||
Additionally, with the ``--json, -j`` option HTTPie tries to detect JSON
|
``Content-Type`` is incorrectly ``text/plain`` or unknown.
|
||||||
responses event when the ``Content-Type`` is ``text/plain`` or unknown.
|
|
||||||
|
|
||||||
Simple example:
|
Simple example:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user