control

replay a previously recorded request to its original target

Re-issues a previously recorded or proxied HTTP request to its upstream target and returns the upstream response. The target host/port is resolved from the socketAddress field or the Host header in the submitted HttpRequest JSON. Subject to the SSRF policy (mockserver.forwardProxyBlockPrivateNetworks) and a 10 MB body-size cap on both the outbound request and the upstream response.

put/mockserver/replay

Request

  • Base URL: http://localhost:1080
  • URL: http://localhost:1080/mockserver/replay
  • Auth: none declared

Request body

secureboolean
keepAliveboolean
protocol'HTTP_1_1' | 'HTTP_2' | 'HTTP_3'

protocol matcher

notboolean
respondBeforeBodyboolean

If true, MockServer responds to a matching request before consuming its body and may close the connection. Required: the matcher must not specify a body matcher, and the action must be RESPONSE or ERROR.

Response

upstream response returned successfully

statusCodeinteger
reasonPhrasestring
statusCodeRangestring

Changes

No recorded changes to this operation across all 1 revision of this API.