It’s Christmastime, and we've got some gifts for you! All aligned with our mission to provide the best experience to anyone working with APIs, of course.
When we announced library and collections, we promised they'd have superpowers in the future. The future starts now, with the first of its superpowers released. In HTTPie for Terminal, we’ve implemented the most requested feature, which has been up-voted nearly 300 times.
Check out what's new 👇
If you use collections to group requests to the same API and that API has an authorization process, now you only need to set the authentication credentials once and relax from then on.
Set auth at the collection level, and it’ll auto-apply to every request that belongs to it. If you go to a nested request, you’ll verify the inherited auth, and you’ll be able to override it if needed.
- Have you noticed that an active request tab gets highlighted in the library sidebar? It helps with locating it. And now it happens the same to the active collection tabs.
- Context menus could be open all on top of another. How would you know which one was important for you at the time? Now, when you open a context menu, other ones get closed.
- We now also specify a default
User-Agent: HTTPieheader in every request.
- Duplicating a request was not adding it to the library. Now it does.
- Sending a body with
GETrequests is not very common, yet you might need it. Now nothing stops you from doing it.
⏱️ Timed responses (#1250)
One of the most requested features of all time has been the ability to see the response time natively. And now the new meta section includes the total time spent sending the request / receiving the response. You can see it through the new
m argument to
-vv and there’s also a new shortcut
--meta to only print the meta information). See it in action below:
$ http --print=bm pie.dev/get
If you are using the new Pie styles, through
pie-light, you’ll see this output colored, according to the response time.
- Friendlier error messages. If you type the URL wrong or have some connection issues, you’ll no longer see a clunky error message. If you have other cases where some of the error messages are annoying, please let us know. (#1249)
- 💁🏻♀️ If you’re not on the private beta yet, you can join the waitlist here.
- 👉 You can also follow @httpie and join our Discord community.
- 👩💻 We’re looking for new colleagues in engineering and design roles.
Originally published on HTTPie blog.