https://github.com/hbagdi/hit
Make and manage HTTP requests
https://github.com/hbagdi/hit
cli http-client
Last synced: about 1 year ago
JSON representation
Make and manage HTTP requests
- Host: GitHub
- URL: https://github.com/hbagdi/hit
- Owner: hbagdi
- License: apache-2.0
- Created: 2022-02-06T05:01:58.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-20T04:59:24.000Z (over 3 years ago)
- Last Synced: 2025-04-02T14:21:44.004Z (about 1 year ago)
- Topics: cli, http-client
- Language: Go
- Homepage: https://hit.yolo42.com
- Size: 209 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# hit

[](https://github.com/hbagdi/hit/actions/workflows/test.yaml)
Make and manage HTTP requests
Hit is a command-line program that makes it easy to build HTTP requests
using plain-text files and execute them.
Some features include:
- authoring HTTP requests using plain-text files
- using output of one HTTP request as input to the next request
- define request templates that can be dynamically populated
- execute complex workflows by changing the execution order of requests and
using inbuilt cache to inject a subset of response into a request
- Combine responses from multiple requests and send them in a single request
[Status](#status) | [Install](#install) | [Documentation](#documentation) |
[Getting help](#getting-help) | [Contributing](#contributing) | [License](#license)
## Status
`hit` is in early development. Expect rough edges and all feedback is welcome.
## Install
`hit` is a single statically compiled binary. The binaries are hosted on GitHub.
```shell
# macOS
brew install hbagdi/tap/hit
# Linux
curl -sL https://github.com/hbagdi/hit/releases/download/v0.2.0/hit_0.2.0_linux_amd64.tar.gz \
-o /tmp/hit.tar.gz
tar -xf /tmp/hit.tar.gz -C /tmp
sudo cp /tmp/hit /usr/local/bin/
```
## Get started
Create a hit file:
```shell
echo '@_global
baseURL=https://nodes.yolo42.com
version=1
@gen-root-node
POST
/v1/node
~y2j
title: my-root-node
' > quick-start.hit
```
Execute your first request:
```shell
hit @gen-root-node
```
For a further complete demo, please go through the
[quick-start guide](https://hit.yolo42.com/docs/get-started/quick-start/).
## Documentation
Documentation is available at [hit.yolo42.com](https://hit.yolo42.com).
## Getting help
If you need help, please open a [GitHub issue](https://github.com/hbagdi/hit/issues/new).
## Contributing
`hit` is in early development and hence the code is evolving at a rapid pace and
there is little to none developer documentation for the code/architecture.
Patches are welcome. If you would like to make a larger change, please open
a GitHub issue first to discuss your proposal.
## License
`hit` is licensed under [Apache 2.0](https://github.com/hbagdi/hit/blob/main/LICENSE).