Skip to content

majermarci/hrt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hrt - HTTP(S) Request Tool

Go Report Card Go Reference License Build Status Test Status Latest Release)

hrt is a CLI http client, that uses yaml configs to manage your request collections. It's aim is to make testing easier, with having a config per project/repository containing the needed requests.

My goal is to provide a simplified alternative to tools such as Insomnia and httpie. This tool is still in its development stage and serves as a learning project for me.

Features

  • Simple yaml configuration for organizing your request collection(s)
    • Specify headers, body and method for each request
    • Bearer Token and Basic Auth support
    • Support for local and global config files
    • Option to create a default config file
  • Various option flags for running requests
    • Usage of specific TLS certificate, adding new CA chains to existing one or skipping certificate verification
    • Global timeout option
    • Verbose outputs showing request and TLS details
    • Option to run every request from the active collection file right after each other

Usage

For more information on how to use hrt, you can run hrt -h in your terminal or refer to the documentation page.

Installation


Using the binary (Linux)

You can use the one-line installer script to download and install the latest binary for Linux:

curl -fsSL https://raw.githubusercontent.com/majermarci/hrt/main/install.sh | sudo bash

Or you can download the latest binary from the releases page and install manually. This is only supported for Linux systems. For an x86_64 OS you can use the following commands:

curl -L https://github.com/majermarci/hrt/releases/latest/download/hrt-linux-amd64 -o hrt

chmod +x hrt

sudo install -m 755 hrt /usr/local/bin

Using Go

If Go is installed on your system, you can install the app using the following command:

go install github.com/majermarci/hrt/cmd/hrt@latest

Tip: Make sure that your $PATH contains the Go bin directory ($HOME/go/bin by default).


Building from source

Requirements:

  • Go 1.21+
  • GNU Make
git clone https://github.com/majermarci/hrt.git
cd hrt/

make build

sudo install -m 755 bin/hrt /usr/local/bin