Skip to content
Mittelware

Documentation

Learn Mittelware

Everything you need to go from first launch to confident rule-writing.

Reading the Flows page

A guided tour of the Flows page - the list, the tabs, search and filters, the details panel, streaming responses, WebSockets, paused requests, exporting a HAR file and clearing the list.

Flows is where you spend most of your time in Mittelware. It's a live list of every request that passes through the proxy, newest at the bottom. A flow is one request together with its response.

If you haven't seen it yet, do the Getting started tutorial first. This page is the reference for everything you can do here.

The list#

The Flows page filtered to jsonplaceholder.typicode.com, showing four rows with a search box and a group of rows that carry a shield icon.
The Flows list. The shield icon marks requests that a rule matched.
Column What it shows
App The icon of the application that sent the request. A request from a phone or another computer on your network shows a phone icon instead: see Phones and other devices
Method GET, POST, PUT, PATCH, DELETE and so on. See Start here if these are new
URL The full address. A shield icon in front means one or more rules matched this request
Status The result code from the server: colour-coded, with 2xx green and 3xx blue
Duration How long the whole exchange took. A response that is still arriving piece by piece shows a green streaming label here instead; see Streaming responses. A WebSocket that is still connected shows a green open label; see WebSockets
Size How much data the response held

The title at the top, Flows (18) in the picture, is how many requests Mittelware currently holds. The small N results counter next to the search box says how many survive your filters.

Narrowing the list#

A busy app or browser can produce hundreds of requests. Four tools help you find the one you care about.

The tabs#

Tab Shows
All Everything
Paused Requests being held by a Pause and Review rule, and WebSockets with a message held by a Pause Message rule, waiting for you
Intercepted Requests that at least one rule matched (the ones with a shield), and WebSockets a rule has acted on a message of

The application filter#

The All Applications dropdown at the left lets you tick one or more apps so you only see their traffic. It's the quickest way to hide a browser's noise while you watch a script.

Search by URL#

Type any part of an address in the Search by URL box, such as jsonplaceholder or /v1/users. The list updates as you type. Click the x to clear it.

The filter button#

The funnel icon opens a panel of conditions that works just like the When… part of a rule: pick a category (URL, HTTP Method, Request Header, Query Params, Request Body, Status Code and so on), a comparison and a value. Use it for questions the search box can't answer, such as "show me only POST requests that returned a 4xx".

The details panel#

Click a row to open the Details panel on the right. Click the x to close it.

The Details panel next to the list, with the four tabs marked 1 and the formatted response body marked 2.
The Details panel. The Response tab shows the body as a foldable JSON tree.
Tab What you find
General The application, the rules that acted on the request (click one to open it), the URL, status code, the server's address, the time, and a timing breakdown
Headers Two sub-tabs: the Request headers that were sent and the Response headers that came back, each with a count
Payload The Query Parameters and the Request Body that were sent
Response The status, duration and size, and the response body
Messages For a WebSocket only, in place of Response: every message of the connection, in order. See WebSockets

On the Response tab you can switch between JSON and Plain Text, Copy the body, or Expand it. JSON, XML and HTML are formatted so they're easy to read. If the response arrived as a stream, a Response / Stream switch appears at the right of the status line: see the next section.

When a rule changed a request, a badge at the top of the panel names it, for example Docs: fake user executed. That's how you confirm a rule did what you expected. If two rules acted, it says 2 rules matched instead.

The Details panel with a badge reading Docs: fake user executed.
The badge tells you which rule ran, and the Response tab shows what it produced.

When more than one rule acted#

One rule can change what is sent, and another can change what comes back, so a request can be touched by two. Then the badge counts them instead of naming one: 2 rules matched. Hover over it to see their names, in the order they acted.

The Flows list with one row marked by a shield, and the Details panel whose badge reads 2 rules matched. A small list under the badge names API calls to localhost and Mark as test data.
1: the shield. 2: the badge. 3: the rules, in the order they acted. The first sent the call to a local server, the second added a header to its answer.
  1. The shield in the row says that at least one rule acted.
  2. The badge says how many.
  3. The list names them. Here one rule moved the call to localhost:3000 and the other added a header to the answer.

The General tab lists the same rules under Matched Rules, and clicking one opens it for editing, which is the quickest way from a surprising result to the rule behind it.

The General tab of the same request: the application, then Matched Rules listing API calls to localhost and Mark as test data.
The General tab names every rule that acted, in order.

How two rules come to act on one request is explained in Order, and when two rules act on one request.

Streaming responses#

Some servers send an answer in pieces over time, such as the replies of AI chat APIs, live logs and event feeds. Mittelware follows these as they happen:

  • The row in the list shows a green streaming label until the stream ends, and then the total time and size.
  • The Response tab gets a Stream view: every chunk, in order, with the moment it arrived and the gap since the one before. It follows the stream live and keeps a record when it finishes.
  • A stream that stops early is marked ended early, with the reason: the client closed the connection, or the connection to the server failed.

Monitoring streaming responses covers what counts as a stream, how to read the view, and its limits. To make a rule produce a stream, see Stream a response.

WebSockets#

A WebSocket is a connection that stays open so both sides can send messages whenever they like: chat, live prices, notifications, and the hot-reload channel of a dev server. Mittelware lists one as a single row:

The Flows list with one WebSocket row: a WS badge in front of the address, the status 101 and a green open label in the Duration column.
A WebSocket in the list. 1: the WS badge. 2: the status 101. 3: open while it's connected.
  • The row carries a WS badge and shows the ws:// or wss:// address the app opened.
  • Its status is 101, the server's agreement to switch from requests to messages.
  • A green open label replaces the duration until the connection closes. After that the row shows the total time and the number of messages.
  • Select it, and the Messages tab lists every message, which way it went, when, and what was in it.
  • Once a WebSocket rule has acted on a message, the row gets the blue rule icon and shows under Intercepted, like a request a rule acted on. Hover over the icon for the rule's name; the details panel names it in a badge.
  • A message held by a Pause Message rule adds an amber pause icon and makes the row show under Paused as well, until you decide.

WebSockets covers what Mittelware does with them. Reading the Messages tab is the reference for the tab, and WebSocket rules shows how to change, drop, delay, hold or close messages.

Paused requests#

A rule with the action Pause and Review holds a matching request before it reaches the server. It appears under the Paused tab with a panel where you can read and edit the request: its method, URL, headers and body. Then choose:

  • Resume to send it on, with your edits.
  • Drop to throw it away so it never reaches the server.

The Resume button shows a countdown. If you do nothing for five minutes, Mittelware sends the request on exactly as it was when it was paused, so a forgotten pause never leaves your app stuck for ever. See Pause and Review for how to create one, and Pause and edit a request by hand for a worked example.

Export and clear#

At the right end of the toolbar:

  • The download button saves everything in the list as a HAR file. HAR (HTTP Archive) is a standard format that browsers' developer tools, Postman and many other tools can open, which makes it handy for sharing a bug with a teammate. It's disabled when the list is empty.
  • The bin button, Clear all flows, empties the list. It does not delete your rules. Use it before a test so you only see new traffic.

NOTE

Everything on the Flows page lives on your computer. Mittelware never uploads your traffic. Be careful when you share a HAR file, since it contains the real headers and bodies of your requests, including tokens and cookies.

In this section