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