forked from extern/httpie-cli
Fix table formatting
reStructuredText is a mess
This commit is contained in:
parent
759e4400d0
commit
507cd6e255
20
README.rst
20
README.rst
@ -471,22 +471,22 @@ their type is distinguished only by the separator used:
|
|||||||
| ``name==value`` | string parameter to the URL. |
|
| ``name==value`` | string parameter to the URL. |
|
||||||
| | The ``==`` separator is used. |
|
| | The ``==`` separator is used. |
|
||||||
+-----------------------+-----------------------------------------------------+
|
+-----------------------+-----------------------------------------------------+
|
||||||
| Data Fields | Request data fields to be serialized as a JSON |
|
| Data Fields | Request data fields to be serialized as a JSON |
|
||||||
| ``field=value``, | object (default), to be form-encoded |
|
| ``field=value``, | object (default), to be form-encoded |
|
||||||
| ``field=@file.txt`` | (with ``--form, -f``), or to be serialized as |
|
| ``field=@file.txt`` | (with ``--form, -f``), or to be serialized as |
|
||||||
| | ``multipart/form-data`` (with ``--multipart``). |
|
| | ``multipart/form-data`` (with ``--multipart``). |
|
||||||
+-----------------------+-----------------------------------------------------+
|
+-----------------------+-----------------------------------------------------+
|
||||||
| Raw JSON fields | Useful when sending JSON and one or |
|
| Raw JSON fields | Useful when sending JSON and one or |
|
||||||
| ``field:=json``, | more fields need to be a ``Boolean``, ``Number``, |
|
| ``field:=json``, | more fields need to be a ``Boolean``, ``Number``, |
|
||||||
| ``field:=@file.json`` | nested ``Object``, or an ``Array``, e.g., |
|
| ``field:=@file.json`` | nested ``Object``, or an ``Array``, e.g., |
|
||||||
| | ``meals:='["ham","spam"]'`` or ``pies:=[1,2,3]`` |
|
| | ``meals:='["ham","spam"]'`` or ``pies:=[1,2,3]`` |
|
||||||
| | (note the quotes). |
|
| | (note the quotes). |
|
||||||
+-----------------------+-----------------------------------------------------+
|
+-----------------------+-----------------------------------------------------+
|
||||||
| Fields upload fields | Only available with ``--form, -f`` and |
|
| Fields upload fields | Only available with ``--form, -f`` and |
|
||||||
| ``field@/dir/file`` | ``--multipart``. |
|
| ``field@/dir/file`` | ``--multipart``. |
|
||||||
| ``field@file;type`` | For example ``screenshot@~/Pictures/img.png``, or |
|
| ``field@file;type`` | For example ``screenshot@~/Pictures/img.png``, or |
|
||||||
| | ``'cv@cv.txt;text/markdown'``. |
|
| | ``'cv@cv.txt;text/markdown'``. |
|
||||||
| | With ``--form``, the presence of a file field |
|
| | With ``--form``, the presence of a file field |
|
||||||
| | results in a ``--multipart`` request. |
|
| | results in a ``--multipart`` request. |
|
||||||
+-----------------------+-----------------------------------------------------+
|
+-----------------------+-----------------------------------------------------+
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user