xh is a lightweight HTTP client written in Rust for sending network requests, testing APIs, and inspecting server responses directly from the command line. Inspired by HTTPie, it combines intuitive request syntax with efficient execution and minimal overhead. Users can construct JSON payloads, submit form data, upload files, and configure custom HTTP headers. Persistent sessions retain authentication credentials, cookies, and request settings across multiple interactions. Integrated authentication supports Basic, Digest, and Bearer mechanisms. Customizable syntax highlighting and response formatting improve terminal readability. Additional functionality includes resumable downloads, proxy configuration, TLS certificates, and offline request construction. xh also translates commands into equivalent curl syntax.
Features
- Intuitive HTTP request construction with JSON payloads, form submissions, multipart uploads, and custom headers
- Persistent session management with reusable authentication credentials, cookies, and request configurations
- Multiple authentication mechanisms supporting Basic, Digest, and Bearer token-based authentication
- Customizable syntax highlighting and response formatting with configurable terminal color schemes
- Advanced network configuration with proxy support, client certificates, DNS overrides, and selectable HTTP versions
- Resumable file downloads, offline request construction, and automatic translation into equivalent curl commands