https://github.com/vkstrm/hur
HTTP using Rust
https://github.com/vkstrm/hur
http rust
Last synced: 9 months ago
JSON representation
HTTP using Rust
- Host: GitHub
- URL: https://github.com/vkstrm/hur
- Owner: vkstrm
- License: mit
- Created: 2021-09-25T11:03:58.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-13T15:13:19.000Z (12 months ago)
- Last Synced: 2025-05-15T06:42:12.133Z (11 months ago)
- Topics: http, rust
- Language: Rust
- Homepage:
- Size: 126 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# HUR
Command-line utility for making HTTP requests.
Note: This program is not better than Curl.
It will contain bugs and is unlikely to fully conform to the HTTP specification.
I am however having fun writing it and find it to be useful in some situations.
## Installation
```nu
cargo install hur
```
## Usage
GET is the default method.
```nu
hur https://petstore.com/animals -h "header:value"
```
To use another method add `--method`
```nu
hur https://petstore.com/animals --method POST --body '{"name":"Luffy"}'
```
Using `--verbose` mode will print, in JSON, the request and response objects.
```json
{
"request": {
"method": "GET",
"headers": {},
"path": "/animals",
"etc" "..."
},
"response": {
"statusCode": 200,
"body": "{}",
"etc": "..."
}
}
```
Use `--help` for more information.
## Proxy
Proxy support with HTTP_PROXY, HTTPS_PROXY and NO_PROXY environment variables.
Disable proxy for a request using `--no-proxy`