Changelog #0020 β€” Data Filtering, Search and Replace, RegExp, and more

Hello, API World! We’re back with a new release of HTTPie for web and desktop, the API testing client you’ll enjoy using. Last time, we indicated additional tools for navigating and processing data. And that has been our theme for this release. See what we shipped in v2022.15.0πŸ‘‡

summary

Filter, transform and analyze structured data

We recently introduced text search to help you navigate large messages. Text Search is available everywhere in the app as a universal way of navigating text content.

However, when talking to APIs, you often deal with structured data such as JSON, XML and HTML. The clear structure of these formats unlocks additional, more powerful ways of navigating and processing the data they contain.

In this release, we focused on taking advantage of this and adding the ability to filter structured formats using different query languages. With filtering, you can quickly analyze, transform, and selectively extract data from structured documents without leaving HTTPie.

The following data formats and query languages ​​are now available:

Activate Filter Fields via keyboard shortcut when text area is focused (macOS: F, Windows and Linux: F) or use the “Filter” item in the menu of the panel.

Data filtering is available everywhere structured data may appear: in preview and request and response panels. To filter the request body data you are editing, open the preview panel and activate the filter there. The preview shows the effective request body with all variables already replaced, allowing for more robust filtering.

Data filtering and text searching are independent features. For example, you can filter a huge JSON response and still search inside the filtered output. To do this, simply open both filter fields (F) and text search field (F,

This feature is part of the theme of making data easier to process and digest, and we will continue to add more ways to transform and visualize data.

Upgrade your searches via RegExp

Regular Expressions (aka RegExp) are a powerful tool for finding patterns in text, and now you can use them in HTTPie as well.

RegExp Search

Search and replace in request body

Any request body should be comfortably editable directly in HTTPie, no matter how large. The new ability to find and replace is another step in that direction!

To change

Activate the search field via keyboard shortcut when the text field is focused (macOS: F, Windows and Linux: F), and check out the new replacement options. Either change the events one by one or all at once β€” it’s up to you!

When searching using RegExp, you can refer to matching groups using the dollar-group-number syntax, where $0 Refers to the entire match, $1 The first group is, etc.

Other improvements and bug fixes

  • When the response body preview is active, and you apply a search or filter, we turn the preview off automatically so you can work on the raw body.
  • The app now uses dark mode for the UI by default. No worries, you can still change it back in the system or light via settings (,) if that’s what you prefer.
  • All keyboard shortcuts will be repeated during the long press. We have now streamlined this, for example, holding I Results in only one request.
  • We now warn you when you hit or reach the maximum variable name character limit.
  • We fixed a bug that sometimes caused 100% CPU usage with multiple tabs open.

Need Help: Teams and Collaboration

Like Delicious Pie, we believe the magic of HTTPie can be best experienced when shared with others. I

We have been working on a multiplayer mode for some time now. Team and collaboration are some of the most exciting and requested features on our roadmap. We can’t wait to see what shape they take and all the opportunities they unlock for our users.

team and collaboration

If you’re as excited as we are, or vice versa, we’d love to talk to you! We want to make sure we’re building the right thing, and your help will be greatly appreciated and swag-rewarded!

Initially, you can help us by completing a quick survey. Then, if you’re up for it, we’ll be happy to interview you on Zoom.

Keep in touch, and help shape the best collaborative API experience possible! I

Happy API testing, and see you again soon!

Leave a Comment