--- title: Verifying Proxied Requests & Responses shortTitle: Verifying Proxied Requests description: Verify that proxied requests and responses were received by MockServer a specific number of times or in a particular order, including response matching by status code, headers, and body. layout: page pageOrder: 4 section: 'Proxying' subsection: true sitemap: priority: 0.7 changefreq: 'monthly' lastmod: 2026-06-24T08:00:00+01:00 ---

Because MockServer records every request it forwards and the response the upstream returned, in proxy mode you can verify both sides of an interaction: that your system made the expected calls, and that the dependency replied as expected. Verifying the proxied responses — by status code, headers, and body — is the headline advantage of proxying through MockServer over an assertion-only test, letting you assert against real upstream behaviour. See Verifying Responses below for that; the sections before it cover verifying the requests themselves.

{% include_subpage ../mock_server/_includes/verification_summary.html %}