Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
December 27, 2021 01:36 pm GMT

Changelog 0007 Auth at the collection level

Its 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, weve implemented the most requested feature, which has been up-voted nearly 300 times.

Check out what's new

HTTPie for Web & Desktop

Auth at the collection level

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.

collection_auth

Set auth at the collection level, and itll auto-apply to every request that belongs to it. If you go to a nested request, youll verify the inherited auth, and youll be able to override it if needed.

Other improvements

  • 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: HTTPie header in every request.

Fixes

  • Duplicating a request was not adding it to the library. Now it does.
  • Sending a body with GET requests is not very common, yet you might need it. Now nothing stops you from doing it.

HTTPie for Terminal

Heres a summary of this weeks improvements to the development version of HTTPie for Terminal, which will be part of the upcoming v3.0.0 release.

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 --print (included by default with -vv and theres 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-dark/pie-light, youll see this output colored, according to the response time.

timed_responses

Improvements

  • Friendlier error messages. If you type the URL wrong or have some connection issues, youll 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)

Happy testing, and see you next week!

Originally published on HTTPie blog.


Original Link: https://dev.to/pie/changelog-0007-auth-at-the-collection-level-7ha

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To