1
0
mirror of https://github.com/httpie/cli.git synced 2025-04-21 12:06:51 +02:00

Updated readme (--flags).

This commit is contained in:
Jakub Roztočil 2012-03-04 01:59:00 +01:00
parent 00312ead28
commit 73d0f9cd56

View File

@ -34,10 +34,10 @@ The data to be sent can also be passed via `stdin`:
http PUT api.example.com/person/1 X-API-Token:123 < person.json http PUT api.example.com/person/1 X-API-Token:123 < person.json
Most of the flags mirror the arguments you would use with `requests.request`. See `http -h`: Most of the flags mirror the arguments you would use with `requests.request`. See `http -h`:
usage: http [-h] [--json | --form] [--traceback] [--ugly] [--headers | --body] usage: http [-h] [--json | --form] [--traceback] [--ugly] [--headers | --body]
[--style STYLE] [--auth AUTH] [--verify VERIFY] [--proxy PROXY] [--request] [--style STYLE] [--auth AUTH] [--verify VERIFY]
[--allow-redirects] [--file PATH] [--timeout TIMEOUT] [--proxy PROXY] [--allow-redirects] [--file PATH]
[--timeout TIMEOUT]
method URL [item [item ...]] method URL [item [item ...]]
HTTPie - cURL for humans. HTTPie - cURL for humans.
@ -56,11 +56,11 @@ Most of the flags mirror the arguments you would use with `requests.request`. Se
--form, -f Serialize data items as form values and set Content- --form, -f Serialize data items as form values and set Content-
Type to application/x-www-form-urlencoded, if not Type to application/x-www-form-urlencoded, if not
specified. specified.
--traceback Print a full exception traceback should one be raised --traceback Print a full exception traceback should one occur.
by `requests`.
--ugly, -u Do not prettify the response. --ugly, -u Do not prettify the response.
--headers, -t Print only the response headers. --headers, -t Print only the response headers.
--body, -b Print only the response body. --body, -b Print only the response body.
--request, -r Print only the response body.
--style STYLE, -s STYLE --style STYLE, -s STYLE
Output coloring style, one of autumn, borland, bw, Output coloring style, one of autumn, borland, bw,
colorful, default, emacs, friendly, fruity, manni, colorful, default, emacs, friendly, fruity, manni,