From 1b5eac2ced41723f6ce1abc82ba1c3e71750271f Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sat, 14 Jun 2014 13:44:18 +0800 Subject: [PATCH] Kramdown. --- _config.yml | 1 + httpie.md | 36 ++++++++++++++++++++++++++++++++---- 2 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 _config.yml diff --git a/_config.yml b/_config.yml new file mode 100644 index 000000000..10e6731ad --- /dev/null +++ b/_config.yml @@ -0,0 +1 @@ +markdown: kramdown diff --git a/httpie.md b/httpie.md index 08702e594..2c231e507 100644 --- a/httpie.md +++ b/httpie.md @@ -4,10 +4,12 @@ layout: default --- $ http POST example.com/posts/3 \ - Origin:example.com # HTTP headers - name="John Doe" \ # JSON data - age:=29 \ # use := for non-strings - token:=@token.txt \ # read from file (json or text) + Origin:example.com # : HTTP headers + name="John Doe" \ # = JSON data + q=="search" \ # == URL parameters + age:=29 \ # := for non-strings + token=@token.txt \ # =@ read from file (text) + user:=@user.json \ # :=@ read from file (json) ### Forms @@ -15,6 +17,32 @@ layout: default name="John Smith" \ cv=@document.txt +### Options + + --pretty=none # all,colors,format + + --print=HBhb + # H : request headers + # B : request body + # h : response headers + # b : response body + + --output FILE (or -o) + + --follow + --timeout SECONDS + --verify no # skip SSL verification + + --download + --continue + + --session NAME + --auth USER:PASS (or -a) + --auth-type {basic,digest} + + --proxy http:http://foo.bar:3128 + + ### References * https://github.com/jakubroztocil/httpie