Convenient CLI utility for performing HTTP requests
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
anna 203097114e
add readme
1 year ago
src release under 3-clause BSD license 1 year ago
.gitignore initial commit uwu 1 year ago
Cargo.lock add support for pretty-printing json 1 year ago
Cargo.toml add support for pretty-printing json 1 year ago
LICENSE release under 3-clause BSD license 1 year ago
Makefile add makefile 1 year ago
README.md add readme 1 year ago
http.1 add manpage entry 1 year ago

README.md

http-cli

http is the http command-line client you've been waiting for. It's like curl except with a much more convenient interface.

Features

  • Automatically follows redirects by default
  • Automatically pretty-prints JSON if stdout is a tty
  • Automatically prepends https:// to URLs without a protocol if called as https
  • Written in pure Rust (!)

Installation

Install Rust if for some reason you haven't already, then type cargo build --release. Copy the newly created target/release/http-util to /usr/local/bin or some other directory in your PATH, and rename it to http. You may also want to create a link to this file called https; this utility will default to HTTPS if called as such. Lastly, you may want to copy http.1 to /usr/local/man/man1/ to get the manpage.

Alternatively, you can also run sudo make install for the automated installation procedure, although cargo might get a stroke if you run it as root.

License

Copyright © 2023 anna <owt AT fef.moe>.

This program is distributed under the 3-clause BSD license. See the LICENSE file for details.