Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.