Kramdown.

This commit is contained in:
Rico Sta. Cruz 2014-06-14 13:44:18 +08:00
parent a1950d30ab
commit 1b5eac2ced
2 changed files with 33 additions and 4 deletions

1
_config.yml Normal file
View File

@ -0,0 +1 @@
markdown: kramdown

View File

@ -4,10 +4,12 @@ layout: default
--- ---
$ http POST example.com/posts/3 \ $ http POST example.com/posts/3 \
Origin:example.com # HTTP headers Origin:example.com # : HTTP headers
name="John Doe" \ # JSON data name="John Doe" \ # = JSON data
age:=29 \ # use := for non-strings q=="search" \ # == URL parameters
token:=@token.txt \ # read from file (json or text) age:=29 \ # := for non-strings
token=@token.txt \ # =@ read from file (text)
user:=@user.json \ # :=@ read from file (json)
### Forms ### Forms
@ -15,6 +17,32 @@ layout: default
name="John Smith" \ name="John Smith" \
cv=@document.txt 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 ### References
* https://github.com/jakubroztocil/httpie * https://github.com/jakubroztocil/httpie