xh
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.
Installation
via cURL (Linux & macOS)
curl -sfL https://raw.githubusercontent.com/ducaale/xh/master/install.sh | sh
via a package manager
OS | Method | Command |
---|---|---|
Any | Cargo* | cargo install xh |
Any | Huber | huber install xh |
Arch Linux | Pacman | pacman -S xh |
Debian & Ubuntu | Apt** | sudo apt install xh |
FreeBSD | FreshPorts | pkg install xh |
Linux & macOS | Nixpkgs | nix-env -iA nixpkgs.xh |
Linux & macOS | Homebrew | brew install xh |
macOS | MacPorts | sudo port install xh |
Windows | Scoop | scoop install xh |
* Make sure that you have Rust 1.46 or later installed
** You will need to add the apt repository from https://apt.cli.rs/
via pre-built binaries
The release page contains prebuilt binaries for Linux, macOS and Windows.
Usage
USAGE:
xh [OPTIONS] <[METHOD] URL> [--] [REQUEST_ITEM]...
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
-m, --multipart Like --form, but force a multipart/form-data request even without files
--pretty