Make HTTP Requests With xh

Send requests and read colored responses with terse syntax.

macOScurlnetworkapihttpieLow risk
Run xh GET https://httpbin.org/get to fetch and pretty-print a JSON response.

01Command

Command
$ xh GET https://httpbin.org/get

02What it does

xh is a Rust reimplementation of HTTPie that is fast to start and uses intuitive syntax such as xh POST url key=value. It colorizes headers, JSON and HTML, supports files and sessions, and can download with xh --download.

03Risk

RiskLow risk
CompatibilitymacOS with Homebrew installed
!Warning: Response bodies may contain credentials or tokens; avoid logging them in shared CI output.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • Homebrew formula: xh
    Homebrew · vendor-doc · 2026-09-20
    Evidence: Friendly and fast tool for sending HTTP requests. Packages xh, a fast HTTP client inspired by HTTPie with a simpler syntax.

Last verified: 2026-09-22 · Category: Network