kodumaro-http-cli

Crates.iokodumaro-http-cli
lib.rskodumaro-http-cli
version0.5.5
created_at2024-10-08 22:00:30.553891+00
updated_at2025-07-24 13:38:30.775373+00
descriptionKodumaro HTTP CLI inspired by HTTPie
homepagehttps://codeberg.org/cacilhas/microcli/src/branch/master/http
repositoryhttps://codeberg.org/cacilhas/microcli
max_upload_size
id1401730
size121,613
Montegasppα ℭacilhας (cacilhas)

documentation

README

Kodumaro HTTP CLI

Kodumaro HTTP CLI inspired by HTTPie.

Project status

It’s still a usable work in progress (ish).

Installation guide

From Crates.io (release)

❯ cargo install kodumaro-http-cli
❯ upx --best --lzma ~/.cargo/bin/http

From Codeberg (nightly)

❯ cargo install --git=https://codeberg.org/cacilhas/microcli.git kodumaro-http-cli
❯ upx --best --lzma ~/.cargo/bin/http

Usage

❯ http -h
Kodumaro HTTP CLI inspired by HTTPie

Usage: http [OPTIONS] <VERB> <URL> [PARAMS]...

Arguments:
  <VERB>       HTTP method [possible values: connect, delete, get, head, options, patch, post, put, trace]
  <URL>        URL to be requested
  [PARAMS]...  header:value, querystring==value, and/or payload=value, or @file-name; `!!str value` means string; anything else is interpreted as raw payload

Options:
  -f, --force                          force overwriting existing files [env: HTTP_FORCE=]
  -d, --download                       download response body to file instead of stdout
  -o, --output <OUTPUT>                save output to file instead of stdout (implies --download)
  -a, --auth <AUTH>                    basic authentication (user[:password]) or bearer token; starting with `!!basic ` forces to use as basic authentication, and `!!bearer ` forces bearer token [env: HTTP_AUTH=]
      --etag <ETAG>                    weak e-Tag
  -F, --follow                         follows Location redirects [env: HTTP_FOLLOW=]
  -m, --max-redirects <MAX_REDIRECTS>  when following redirects, max redirects [env: HTTP_MAX_REDIRECTS=] [default: 30]
      --verify <VERIFY>                set to “no” or “false” to skip checking SSL certificate [env: HTTP_VERIFY=] [default: yes]
  -X, --no-verify                      disable SSL certificate verification (equivalent to --verify=no)
      --fail                           fail on error status code [env: HTTP_FAIL=]
  -v, --verbose                        Show protocol details [env: HTTP_VERBOSE=]
      --dry-run                        dry run, do not send request (implies --verbose)
  -h, --help                           Print help (see more with '--help')
  -V, --version                        Print version

Try --help for long help details.

If you’re unsure whether the parameters are correct, try to run http with the --dry-run flag.

TODO

Look at the issues.

License

Commit count: 0

cargo fmt