Documentation menu
DocumentationCapture and modify gRPC traffic

Capture and modify gRPC traffic

Use anomorph to capture a gRPC call from your test app, inspect the Protobuf response, and change a field before the response reaches the client. The example uses a test shop.

Demo with test data · 45 seconds

1. Capture the gRPC call

Connect your test client using device setup. Open the cart in the test app to send GetCart. Filter the capture by that method, select the call, and open Response.

2. Read the Protobuf response

With the service schema loaded, the test response shows currency and total_cents. Without a schema, open Guess a .proto to get a draft with numbered fields. Use the Protobuf guide for reflection, imports, and the limits of inference.

3. Change a field with Rewrite

Edit total_cents in the response and enter 1299. anomorph creates a Rewrite rule for future matching calls. Open the cart again and inspect the new response. The demo shows 1999 → 1299 in Compare, equivalent to $19.99 → $12.99 for this test cart.

Check the Rewrite rule to see which calls it matches. Disable it after the test to restore the baseline.

Why is my gRPC call missing?

Clear the capture filters, confirm that the client sends traffic through anomorph, and check its TLS trust for HTTPS connections. See connection troubleshooting if the client ignores the system proxy.

Can I inspect streaming gRPC calls?

The capture shows messages and their direction in a gRPC stream. The Rewrite example above is a unary call, with one request and one response. See stream inspection for what the capture shows.