macOS
brew install xhlocal Homebrew formula metadata
安装
brew install xhlocal Homebrew formula metadata
sudo apk add xhAlpine Linux edge package indexes · xh · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#xhnixpkgs package indexes · pkgs/by-name/xh/xh/package.nix · 来源: api.github.com
sudo pacman -S xhArch Linux sync databases · xh · 来源: geo.mirror.pkgbuild.com
sudo zypper install xhopenSUSE Tumbleweed package metadata · xh · 来源: download.opensuse.org
scoop install main/xhScoop official bucket manifest trees · bucket/xh.json · 来源: api.github.com
winget install --id ducaale.xh -eWindows Package Manager source index · ducaale.xh · 来源: cdn.winget.microsoft.com
概览
Friendly and fast tool for sending HTTP requests
历史
xh is a Rust command-line HTTP client that deliberately follows HTTPie's human-friendly request syntax while focusing on speed, portability, and a single-binary feel. It ships the `xh` command for ordinary requests and commonly also `xhs` for HTTPS-first invocation.
The GitHub repository was created on 2020-09-10. From its README, the central project premise has been stable: reimplement as much as possible of HTTPie's design, but with improved performance. That places xh in a specific generation of Rust CLI rewrites that kept beloved command-line UX while replacing heavier runtimes with compiled binaries.
The tool grew into a broad HTTP client rather than a minimal curl wrapper. Its documented options cover JSON/form/multipart bodies, pretty output, auth modes, sessions, redirects, downloads, proxies, TLS settings, HTTP/2 and HTTP/3 prior-knowledge modes, Unix sockets, offline request construction, curl command generation, completions, and manpage generation.
xh's adoption story is unusually package-manager oriented. The README lists installation through Cargo, Homebrew, MacPorts, Nixpkgs, Alpine, Arch, Debian/Ubuntu, Fedora COPR, FreeBSD, NetBSD, Termux, Scoop, Chocolatey, Winget, and other managers, plus prebuilt binaries for Linux, macOS, and Windows.
By July 2026 the GitHub repository had about 7.9k stars, showing that xh had become one of the recognizable modern alternatives in the terminal HTTP-client space. Its strongest adoption path is among developers who like HTTPie's request syntax but want Rust startup speed and simpler binary distribution.
Typical use mirrors HTTPie: `xh GET example.com`, `xh POST :3000/users name=Ana`, headers with `Header:Value`, query parameters with `==`, JSON literals with `:=`, file upload items with `@`, and localhost shorthand such as `:8000`. The README also documents stdin/file request bodies, nested JSON paths, sessions, downloads, redirects, and output selection.
The package is useful in API testing, shell scripts, local service debugging, documentation snippets, and CI smoke checks where curl is too terse and a full API client is too heavy. The `xhs` alias/symlink convention gives a small packaging detail that matters: package installs can expose both HTTP-default and HTTPS-default entry points.
xh is a clean example of the modern Rust CLI packaging pattern: a familiar UX borrowed from an established tool, fast native binaries, broad package-manager availability, and generated shell/manpage assets. It competes not by inventing a new HTTP grammar, but by making an existing ergonomic grammar cheap to install and fast to run.
For package nerds, xh also shows how compatibility can be a product feature. Its value comes from preserving enough HTTPie muscle memory that package users can swap tools without relearning request-item syntax.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
xh | cli | 全局可执行文件 | |
xhs | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:xh |
|---|---|
| 版本 | 0.26.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/xh |
| 主页 | https://github.com/ducaale/xh |
| 仓库 | https://github.com/ducaale/xh |
| 上游文档 | https://github.com/ducaale/xh#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/ducaale/xh/archive/refs/tags/v0.26.1.tar.gz |
| 最后更新 | 2026-06-20T00:41:08Z |
| Pulse | updated |
| 构建依赖 | rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | xh |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
xh 0.24.0-1+b1
Friendly and fast tool for sending HTTP requests
sudo apt install xhxh
nix profile install nixpkgs#xhxh 0.24.0-r0
Yet another HTTPie clone
sudo apk add xhxh-bash-completion 0.24.0-r0
Bash completions for xh
sudo apk add xh-bash-completionxh-doc 0.24.0-r0
Yet another HTTPie clone (documentation)
sudo apk add xh-docxh-fish-completion 0.24.0-r0
Fish completions for xh
sudo apk add xh-fish-completionxh-zsh-completion 0.24.0-r0
Zsh completions for xh
sudo apk add xh-zsh-completionxh 0.25.3-1
Friendly and fast tool for sending HTTP requests
sudo pacman -S xhxh 0.25.3-1.3
Tool for sending HTTP requests
sudo zypper install xhxh
sudo port install xhmain/xh
scoop install main/xhducaale.xh
winget install --id ducaale.xh -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.