Skip to content
xh
Hidden Gem

Curated by Surfaced Editorial·Developer·2 min read
Share:

xh is an open-source command-line HTTP client, written in Rust, designed to be a friendly and fast alternative to `curl` and `HTTPie`. Its core feature is to send HTTP requests with a simple, intuitive syntax, automatically pretty-printing JSON and syntax-highlighting HTTP headers and bodies for easy readability. This tool is built for developers, API testers, and anyone who frequently interacts with web APIs or needs to debug HTTP communication from the terminal. A user would reach for xh when they need to quickly test an API endpoint, inspect HTTP responses, or simulate web requests with minimal boilerplate. It is a cross-platform utility, available for Linux, macOS, and Windows.

Why It’s Useful

xh offers a superior developer experience compared to `curl`'s verbose syntax and `HTTPie`'s often slower performance, especially for rapid API prototyping and debugging. For the backend developer building a new REST API, xh allows for quick, readable requests and responses, making iterative testing much faster than using a GUI client. For the frontend developer debugging CORS issues, it provides clear visibility into HTTP headers and body content, simplifying the diagnostic process. xh is entirely free and open-source. A powerful, less-known feature is its ability to automatically infer common HTTP methods (GET, POST, PUT) from the presence of data, reducing keystrokes and simplifying commands. Its main barrier to widespread adoption is the sheer dominance of `curl` and the established user base of `HTTPie`, despite xh offering a compelling blend of speed and user-friendliness. The project is actively maintained on GitHub with a dedicated developer and growing community.

Enjoyed this? Get five picks like this every morning.

Free daily newsletter — zero spam, unsubscribe anytime.