1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 06:22:07 +02:00

xh: fix get with a custom header example

Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
This commit is contained in:
Grzegorz Baranski 2021-04-05 15:44:14 +02:00 committed by Starbeamrainbowlabs
parent 0d3b7d7f7e
commit f727e15ee7

View file

@ -15,9 +15,9 @@
`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 with a custom header:
`xh get {{httpbin.org/get}} {{x-api-key:12345}}`
`xh get {{httpbin.org/get}} {{header-name:header-value}}`
- Send a PUT request and pipe the result to less: