From 2e533d47211cdb4888cc9dce986b85e80b2ecadf Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Tue, 5 Nov 2019 07:59:35 +0100 Subject: [PATCH] Updated Proxying (markdown) --- Proxying.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Proxying.md b/Proxying.md index 3686037..b4cb81a 100644 --- a/Proxying.md +++ b/Proxying.md @@ -3,7 +3,7 @@ Proxy responses are defined in exactly the same manner as stubs, meaning that th The following code will proxy all GET requests made to http://:/other/service/.* to http://otherservice.com/approot, e.g. when running WireMock.NET locally a request to http://localhost:9000/other/service/doc/123 would be forwarded to http://otherservice.com/approot/other/service/doc/123. -```csharp +``` c# server .Given( Request.Create() @@ -16,7 +16,7 @@ server ``` The JSON equivalent would be: -```js +``` js { "Request": { "Path": { @@ -42,7 +42,7 @@ The JSON equivalent would be: The proxy/intercept pattern described above is achieved by adding a low priority proxy mapping with a broad URL match and any number of higher priority stub mappings e.g. -```csharp +``` c# // Low priority catch-all proxies to otherhost.com by default server .Given(