TL;DR — Quick Summary

xh is a friendly HTTP client for the terminal. Colorized output, JSON support, download progress — like httpie but faster and written in Rust.

xh makes HTTP requests beautiful. Colorized output, JSON support, download bars — all in Rust.

Installation

# Cargo
cargo install xh

# Homebrew
brew install xh

# Arch
pacman -S xh

Usage

# GET request (colorized output)
xh httpbin.org/get

# POST with JSON data
xh post httpbin.org/post name=test email=test@example.com

# Custom headers
xh get api.example.com Authorization:"Bearer mytoken"

# Download with progress bar
xh --download https://example.com/file.zip

# Form data
xh --form post httpbin.org/post field1=value1

# Only print headers
xh --headers httpbin.org/get

Summary

  • xh: friendly HTTP client for the terminal
  • Colorized output with JSON highlighting
  • httpie-compatible syntax
  • Download progress bars
  • HTTPS by default — Written in Rust