mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-16 15:16:53 +01:00
WithProxy
This commit is contained in:
@@ -30,11 +30,11 @@ namespace WireMock.Net.Console.NETCoreApp
|
||||
|
||||
server
|
||||
.Given(Request.Create().WithPath("/bbc").UsingGet())
|
||||
.RespondWith(Response.Create().FromProxyUrl("http://www.bbc.com"));
|
||||
.RespondWith(Response.Create().WithProxy("http://www.bbc.com"));
|
||||
|
||||
server
|
||||
.Given(Request.Create().WithPath("/google").UsingGet())
|
||||
.RespondWith(Response.Create().FromProxyUrl("http://www.google.com"));
|
||||
.RespondWith(Response.Create().WithProxy("http://www.google.com"));
|
||||
|
||||
server
|
||||
.Given(Request.Create().WithPath(p => p.Contains("x")).UsingGet())
|
||||
|
||||
Reference in New Issue
Block a user