From f1f15b255b977bbc0f031c247c1209f5936d4698 Mon Sep 17 00:00:00 2001 From: Grzegorz Baranski Date: Mon, 5 Apr 2021 15:08:16 +0200 Subject: [PATCH] xh: add highlighting variables --- pages/common/xh.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/common/xh.md b/pages/common/xh.md index 98f929ea0..a353162ea 100644 --- a/pages/common/xh.md +++ b/pages/common/xh.md @@ -5,24 +5,24 @@ - Send a GET request -`xh httpbin.org/get` +`xh {{httpbin.org/get}}` - Send a POST request with JSON body: `{"name": "ahmed", "age": 25}` -`xh post httpbin.org/post name=john age:=25` +`xh post {{httpbin.org/post}} {{name=john}} {{age:=25}}` - Send a GET request with querystring id=5&sort=true -`xh get httpbin.org/get id==5 sort==true` +`xh get {{httpbin.org/get}} {{id==5}} {{sort==true}}` - Send a GET request and include a header named x-api-key with value 12345 -`xh get httpbin.org/get x-api-key:12345` +`xh get {{httpbin.org/get}} {{x-api-key:12345}}` - Send a PUT request and pipe the result to less -`xh put httpbin.org/put id:=49 age:=25 | less` +`xh put {{httpbin.org/put}} {{id:=49}} {{age:=25}} | less` - Download and save to res.json -`xh -d httpbin.org/json -o res.json` +`xh -d {{httpbin.org/json}} -o {{res.json}}`