ramitmittal / hitman

A TUI HTTP client for debugging request/response headers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hitman

A TUI HTTP client for debugging request/response headers inspired by restclient.el and httpie.

Features

  • You choose the HTTP method and URL for the request (obviously).
  • Request + response are printed in a scrollable viewport.
  • Your input is auto-saved on exit.

Install

Using go:

$ go install github.com/ramitmittal/hitman/cmd/hitman@latest
$ hitman

Or download a binary package.

Usage

  • Type a request definition and press TAB to send.
GET jsonplaceholder.typicode.com/posts/2
Accept: application/json
  • Use # to comment lines in input.
GET jsonplaceholder.typicode.com/posts/2
# an http request
  • Use " for escaping spaces and colons.
GET "https://jsonplaceholder.typicode.com/posts/2"
Accept: "custom:value with spaces and colons"
  • Use flags to modify the HTTP client. Flags should be placed after headers.
GET "https://jsonplaceholder.typicode.com/posts/2"
Accept: application/json
-insecure
  • Use Ctrl+Up and Ctrl+Down to scroll and select a header.
  • Use Alt+A, Alt+S, or Alt+D to copy the response to clipboard.

an image

Supported Flags

  • -insecure
    Skip SSL cert checks.
  • -location
    Follow redirects.

What's planned

  • Releases.
  • Something to do with request bodies.

Meta

Issues + PRs are welcome!

About

A TUI HTTP client for debugging request/response headers.

License:GNU General Public License v3.0


Languages

Language:Go 93.6%Language:Makefile 3.5%Language:Yacc 3.0%