winget install --id=ducaale.xh -e
xh is a friendly and fast tool for sending HTTP requests. It reimplements as much as possible of HTTPie's excellent design, with a focus on improved performance.
Xh is a friendly and fast tool for sending HTTP requests, designed to provide an efficient and user-friendly experience. It reimplements key aspects of HTTPie's design while focusing on improved performance, making it ideal for developers and API testers who need quick and reliable HTTP interactions.
Key Features:
Audience & Benefit:
Ideal for API developers, testers, and DevOps engineers seeking a lightweight yet powerful tool to simplify HTTP request handling. Xh provides fast performance and an intuitive syntax, enabling users to focus on their work without unnecessary complexity. It can be installed via winget, making setup straightforward on supported platforms.
Xh is a reliable choice for anyone needing efficient and flexible HTTP client capabilities in their workflow.
xh
is a friendly and fast tool for sending HTTP requests. It reimplements as much
as possible of HTTPie's excellent design, with a focus
on improved performance.
curl -sfL https://raw.githubusercontent.com/ducaale/xh/master/install.sh | sh
iwr -useb https://raw.githubusercontent.com/ducaale/xh/master/install.ps1 | iex
OS | Method | Command |
---|---|---|
Any | Cargo* | cargo install xh --locked |
Any | Huber | huber install xh |
Android (Termux) | pkg | pkg install xh |
Android (Magisk/KernelSU) | MMRL** | mmrl install xhhttp |
Alpine Linux | apk*** | apk add xh |
Arch Linux | Pacman | pacman -S xh |
Debian & Ubuntu | Apt**** | sudo apt install xh |
FreeBSD | FreshPorts | pkg install xh |
NetBSD | pkgsrc | pkgin install xh |
Linux & macOS | Nixpkgs | nix-env -iA nixpkgs.xh |
Linux & macOS | Flox | flox install xh |
Linux & macOS | Homebrew | brew install xh |
Linux & macOS | Hermit | hermit install xh |
macOS | MacPorts | sudo port install xh |
Windows | Scoop | scoop install xh |
Windows | Chocolatey | choco install xh |
Windows | Winget | winget add ducaale.xh |
* Make sure that you have Rust 1.82 or later installed
** You will need to install the MMRL CLI
*** The xh package is available in Edge and will be in v3.17+. It is built with native-tls only.
**** You will need to add the apt repository from https://apt.cli.rs/
The release page contains prebuilt binaries for Linux, macOS and Windows.
Usage: xh [OPTIONS] <[METHOD] URL> [REQUEST_ITEM]...
Arguments:
<[METHOD] URL> The request URL, preceded by an optional HTTP method
[REQUEST_ITEM]... Optional key-value pairs to be included in the request.
Options:
-j, --json (default) Serialize data items from the command line as a JSON object
-f, --form Serialize data items from the command line as form fields
--multipart Like --form, but force a multipart/form-data request even without files
--raw Pass raw request data without extra processing
--pretty