Ht

Dev tools

http client cli

SHOW HN2021

251points
96comments
#147of 2,533 in 2021
Top 6%of 2021 by points

How HN took it

MixedNo clear lean

16 positive, 8 neutral or asking, 1 mixed, 7 critical, out of 32 comments about the project. Thread score +0.28.

Performance: 4 for, 4 againstExecution: 5 for, 0 againstDesign: 2 for, 1 againstIdea: 1 for, 2 againstPrivacy: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Much faster startup than httpie

    From 3 comments
    • Why use something slower when an equivalent faster tool is available? There's definitely a noticeable delay on my machine with starting up the python interpreter. Enough that it…
      thallada on HN
    • It definitely is. ``` % hyperfine 'http get EXAMPLE.COM' 'ht get EXAMPLE.COM' -w 10 -r 100 Benchmark #1: http get EXAMPLE.COM Time (mean ± σ): 200.8 ms ± 7.4 ms [User: 178.9 ms,…
      iruoy on HN
    • Thank you so much for doing this! I can feel the slow startup time of httpie every time I use it. ht has made it disappear! For users of Arch Linux, I submitted an AUR package:…
      nitsky on HN
  • Rustls avoids system TLS libraries

    From 1 comment
    • I think the biggest value of this vs httpie is that it doesn't use the system TLS libraries (openssl/gnutls/whatever) but instead uses rustls. Less attack surface, though…
      hlieberman on HN
  • Easy to install as a single binary

    From 2 comments
    • Nice work! As shared down-thread, I really loved and wanted to use `httpie` but the non-trivial amount of startup has put me off. Very happy that you made a Rust alternative…
      pdimitar on HN
    • Very nice work, seems really fast! Since it’s written in Rust, do you plan to release a Windows version ? HTTPie requires Python so Ht could have another advantage being easier…
      jicea on HN

Objections

  • Name clashes with TeXlive's ht binary

    From 1 comment
    • Very nice! httpie is my favorite HTTP client, and it's always nice if command line tools run a bit faster. Unfortunately the name clashes with a binary that's part of TeXlive: $…
      dbrgn on HN
  • Name misuses HT (HyperText) for a transfer protocol tool

    From 1 comment
    • Hate to be that guy, but it's a bit weird to pick the HT part of HTTP, which stands for HyperText, when the tool only deals with the Transfer Protocol.
      remram on HN
  • Performance gain is mostly Python startup, not request speed

    From 2 comments
    • cpython startup time might account for a good fraction of that
      bpicolo on HN
    • FWIW as a developer whose worked in both interpreted and compiled languages (but not Python) it's obvious to me that the compiled version will be faster, but it's not obvious…
      Volundr on HN

Requests

  • Add HEAD method support

    From 1 comment
    • Nice work, saw this referenced on another Show HN recently: https://news.ycombinator.com/item?id=25939042 Adding HEAD as one of the methods would be welcome so we could get…
      tyingq on HN
  • Document the -p switch in the README

    From 1 comment
    • Nice work, saw this referenced on another Show HN recently: https://news.ycombinator.com/item?id=25939042 Adding HEAD as one of the methods would be welcome so we could get…
      tyingq on HN
  • Dark-terminal-friendly style for white backgrounds

    From 1 comment
    • Really nice. It needs a style that is suitable for a terminal with white background though.
      donaldihunter on HN

Questions

  • Why performance matters for a CLI test tool

    From 1 comment
    • Why do you need more performance from a CLI test tool? I'm honestly curious. It's basically curl (fast) plus simpler and easier interface and pretty printers. For performance in…
      inshadows on HN
  • Is the compiled version faster

    From 1 comment

Alternatives named

  • httpie

    From 2 comments
    • Nice work, saw this referenced on another Show HN recently: https://news.ycombinator.com/item?id=25939042 Adding HEAD as one of the methods would be welcome so we could get…
      tyingq on HN
    • Some httpie tricks: Use --offline to see the request but not perform it: ``` http --offline get google.com GET / HTTP/1.1 Accept: application/json, */*;q=0.5 Accept-Encoding:…
      BiteCode_dev on HN
  • curl

    From 2 comments
    • It adds up. I once tried to scrape an internal company website / API because we had no PDF exports and wanted to download + export to PDF, with `httpie`. It's an amazing tool but…
      pdimitar on HN
    • Why don't you use cURL then? cURL is written in C, which sure is teh performance you're looking for.
      inshadows on HN
  • curlie

    From 1 comment
    • This is great! I've also come to really like curlie (https://curlie.io/). It is written in in Go and provides an `httpie` like interface with `curl` like performance.
      flitzofolov on HN
  • hurl

    From 1 comment
    • Very nice work, seems really fast! Since it’s written in Rust, do you plan to release a Windows version ? HTTPie requires Python so Ht could have another advantage being easier…
      jicea on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/26042463)