From 2cf485847f9a64cd9f83cd9ee65ee56fdbdd70a1 Mon Sep 17 00:00:00 2001 From: gbaranski Date: Mon, 5 Apr 2021 15:11:13 +0200 Subject: [PATCH] xh: solve few linting errors --- pages/common/xh.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/common/xh.md b/pages/common/xh.md index a353162ea8..15462363f1 100644 --- a/pages/common/xh.md +++ b/pages/common/xh.md @@ -1,28 +1,28 @@ # xh -> xh: Friendly and fast tool for sending HTTP requests +> XH: Friendly and fast tool for sending HTTP requests. > More information: . -- Send a GET request +- Send a GET request: `xh {{httpbin.org/get}}` -- Send a POST request with JSON body: `{"name": "ahmed", "age": 25}` +- Send a POST request with JSON body: `{"name": "ahmed", "age": 25}`: `xh post {{httpbin.org/post}} {{name=john}} {{age:=25}}` -- Send a GET request with querystring id=5&sort=true +- Send a GET request with querystring 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 +- Send a GET request and include a header named x-api-key with value 12345: `xh get {{httpbin.org/get}} {{x-api-key:12345}}` -- Send a PUT request and pipe the result to less +- Send a PUT request and pipe the result to less: `xh put {{httpbin.org/put}} {{id:=49}} {{age:=25}} | less` -- Download and save to res.json +- Download and save to res.json: `xh -d {{httpbin.org/json}} -o {{res.json}}`