Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sethetter/reqq-go
Simple CLI for sending HTTP requests defined in text files.
https://github.com/sethetter/reqq-go
Last synced: 12 days ago
JSON representation
Simple CLI for sending HTTP requests defined in text files.
- Host: GitHub
- URL: https://github.com/sethetter/reqq-go
- Owner: sethetter
- Created: 2020-03-24T13:29:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-20T16:28:06.000Z (about 4 years ago)
- Last Synced: 2024-06-19T04:27:34.822Z (5 months ago)
- Language: Go
- Size: 35.2 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reqq
CLI for sending HTTP requests defined in text files.
## Installing
```
$ go install github.com/sethetter/reqq
```## Usage
Without a subcommand, `reqq`'s default behavior is to issue the defined http request.
```
$ reqq -e reqq/envs/test.json reqq/plan-search/nevada-single-family.txt
```This will..
- Get the request file at the specified path
- Look up the `reqq/envs/test.json` file the variables to inject into the http request template.
- Issue the request and output the response data.## Request File Format
```
POST http://the.url.to/send/to?query=here
x-header-a: header values here
x-header-b: yet-another-header
body
content
follows
to EOF
```# Development
This project is under active development!
## TODO
- Allow comments in request files.
- Layering env files?
- Better output.
- More content-type formats?
- Colors?# Inpsiration
- [Insomnia](https://insomnia.rest/) for the idea of having predefined requests and environment configurations.
- [vim-rest-console](https://github.com/diepm/vim-rest-console) for the request file format.