如何返回(回显)请求的内容类型和正文?
mockServer.stubFor(
put(WireMock.urlEqualsTo("/echo"))
.willReturn(
aResponse()
.withStatus(200)
.withHeader("Content-Type", "@@?") // same as request.content-type
.withBody("@@?") // same as request.body
)
);
或者是否有任何替代库可以做到这一点?