Add ProxyUrlReplaceSettings to Response (#1026)

This commit is contained in:
Stef Heyenrath
2023-12-10 09:57:37 +01:00
committed by GitHub
parent 61c8ce76eb
commit 0c6129e86b
9 changed files with 151 additions and 37 deletions

View File

@@ -325,6 +325,23 @@ namespace WireMock.Net.ConsoleApplication
.WithHeader("Keep-Alive-Test", "stef")
);
server
.Given(Request.Create()
.UsingGet()
.WithPath("/proxy-replace")
)
.RespondWith(Response.Create()
.WithProxy(new ProxyAndRecordSettings
{
Url = "http://localhost:9999",
ReplaceSettings = new ProxyUrlReplaceSettings
{
OldValue = "old",
NewValue = "new"
}
})
);
server
.Given(Request.Create()
.WithPath("/xpath").UsingPost()