https://github.com/ducaale/ht Skip to content Sign up * Why GitHub? Features - + Mobile - + Actions - + Codespaces - + Packages - + Security - + Code review - + Project management - + Integrations - + GitHub Sponsors - + Customer stories - + Security - * Team * Enterprise * Explore + Explore GitHub - Learn & contribute + Topics - + Collections - + Trending - + Learning Lab - + Open source guides - Connect with others + The ReadME Project - + Events - + Community forum - + GitHub Education - + GitHub Stars program - * Marketplace * Pricing Plans - + Compare plans - + Contact Sales - + Nonprofit - + Education - [ ] [search-key] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} ducaale / ht * Watch 9 * Star 685 * Fork 13 Yet another HTTPie clone MIT License 685 stars 13 forks Star Watch * Code * Issues 8 * Pull requests 4 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights master 1 branch 7 tags Go to file Code Clone HTTPS GitHub CLI [https://github.com/d] Use Git or checkout with SVN using the web URL. [gh repo clone ducaal] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching Xcode If nothing happens, download Xcode and try again. Go back Launching Visual Studio If nothing happens, download the GitHub extension for Visual Studio and try again. Go back Latest commit @ducaale ducaale Merge pull request #26 from blyxxyz/implicit-host ... 1d768c1 Feb 6, 2021 Merge pull request #26 from blyxxyz/implicit-host Do not explicitly add `Host` header 1d768c1 Git stats * 170 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .github/workflows use zip instead of tar for macOS packaging Jan 30, 2021 assets rename project to ht Dec 31, 2020 src Merge pull request #26 from blyxxyz/implicit-host Feb 6, 2021 tests avoid setting accept header twice Jan 26, 2021 .gitignore initial commit Sep 10, 2020 Cargo.lock bump version to v0.4.0 Feb 5, 2021 Cargo.toml bump version to v0.4.0 Feb 5, 2021 LICENSE Create LICENSE Jan 28, 2021 README.md Add link to AUR package in README Feb 6, 2021 build.rs run cargo fmt Nov 22, 2020 View code README.md ht Version info Yet another HTTPie clone in Rust. asciicast Installation On macOS via Homebrew brew tap ducaale/ht-rs brew install ht-rs On Arch Linux via AUR ht-bin AUR package yay -S ht-bin From binaries The release page contains prebuilt binaries for Linux, macOS and Windows. From source Make sure that you have Rust 1.46 or later installed. cargo install ht Usage ht 0.4.0 USAGE: ht [FLAGS] [OPTIONS] <[METHOD] URL> [REQUEST_ITEM]... FLAGS: --offline Construct HTTP requests without sending them anywhere -j, --json (default) Data items from the command line are serialized as a JSON object -f, --form Data items from the command line are serialized as form fields -m, --multipart Similar to --form, but always sends a multipart/form-data request (i.e., even without files) -I, --ignore-stdin Do not attempt to read stdin -d, --download -c, --continue Resume an interrupted download -v, --verbose Print the whole request as well as the response -q, --quiet Do not print to stdout or stderr -S, --stream Always stream the response body -h, --help Prints help information -V, --version Prints version information OPTIONS: -A, --auth-type Specify the auth mechanism [possible values: Basic, Bearer] -a, --auth -o, --output Save output to FILE instead of stdout -p, --print String specifying what the output should contain --pretty Controls output processing [possible values: All, Colors, Format, None] -s, --style Output coloring style [possible values: Auto, Solarized] --default-scheme The default scheme to use if not specified in the URL ARGS: <[METHOD] URL> The request URL, preceded by an optional HTTP method ... Optional key-value pairs to be included in the request Request Items ht uses HTTPie's request-item syntax to set headers, request body, query string, etc. * =/:= for setting the request body's JSON fields (= for strings and := for other JSON types). * == for adding query strings. * @ for including files in multipart requests e.g picture@hello.jpg or picture@hello.jpg;type=image/jpeg. * : for adding or removing headers e.g connection:keep-alive or connection:. * ; for including headers with empty values e.g header-without-value;. Examples # Send a GET request ht httpbin.org/json # Send a POST request with body {"name": "ahmed", "age": 24} ht httpbin.org/post name=ahmed age:=24 # Send a GET request with querystring id=5&sort=true ht get httpbin.org/json id==5 sort==true # Send a GET request and include a header named x-api-key with value 12345 ht get httpbin.org/json x-api-key:12345 # Send a PUT request and pipe the result to less ht put httpbin.org/put id:=49 age:=25 | less # Download and save to res.json ht -d httpbin.org/json -o res.json Syntaxes and themes used * Sublime-HTTP * json-kv * Sublime Packages * ansi-dark theme About Yet another HTTPie clone Topics rust http-client developer-tools Resources Readme License MIT License Releases 7 v0.4.0 Latest Feb 5, 2021 + 6 releases Packages 0 No packages published Contributors 7 * @ducaale ducaale Mohamed Daahir * @blyxxyz blyxxyz Jan Verbeek * @wezm wezm Wesley Moore Languages * Rust 100.0% * (c) 2021 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.