DEV Community

Discussion on: Show me your best Open Source project

Collapse
 
ducaale profile image
Mohamed Dahir • Edited

GitHub logo ducaale / xh

Friendly and fast tool for sending HTTP requests

xh

Version info

xh is a friendly and fast tool for sending HTTP requests. It reimplements as much as possible of HTTPie's excellent design.

asciicast

Installation

On macOS and Linux via Homebrew

brew install xh

On windows via Scoop

scoop install xh

On Arch linux via Pacman

pacman -S xh

From binaries

The release page contains prebuilt binaries for Linux, macOS and Windows.

From source

Make sure that you have Rust 1.45 or later installed.

cargo install xh

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 <STYLE>             Controls output processing [possible values: all, colors, format, none]
    -s, --style <THEME>              Output coloring style [possible values: auto, solarized]
    -p, --print <FORMAT>             String specifying what the
Collapse
 
thomasbnt profile image
Thomas Bnt ☕

Greeaat!