refactor
This commit is contained in:
parent
f611fa9038
commit
bf3e5f21f9
6 changed files with 31 additions and 51 deletions
|
@ -1,34 +0,0 @@
|
|||
---
|
||||
obj: application
|
||||
os:
|
||||
- linux
|
||||
repo: https://github.com/ducaale/xh
|
||||
---
|
||||
# xh
|
||||
#refactor
|
||||
[Repo](https://github.com/ducaale/xh)
|
||||
xh is a friendly and fast tool for sending [HTTP](../../internet/HTTP.md) requests. It reimplements as much as possible of [HTTPie](HTTPie.md)'s excellent design, with a focus on improved performance.
|
||||
|
||||
## Examples
|
||||
```
|
||||
# Send a GET request
|
||||
xh httpbin.org/json
|
||||
|
||||
# Send a POST request with body {"name": "ahmed", "age": 24}
|
||||
xh httpbin.org/post name=ahmed age:=24
|
||||
|
||||
# Send a GET request with querystring id=5&sort=true
|
||||
xh get httpbin.org/json id==5 sort==true
|
||||
|
||||
# Send a GET request and include a header named x-api-key with value 12345
|
||||
xh get httpbin.org/json x-api-key:12345
|
||||
|
||||
# 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
|
||||
xh -d httpbin.org/json -o res.json
|
||||
|
||||
# Make a request with a custom user agent
|
||||
xh httpbin.org/get user-agent:foobar
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue