diff --git a/Settings.md b/Settings.md index 185283d..8790892 100644 --- a/Settings.md +++ b/Settings.md @@ -87,8 +87,7 @@ var server = WireMockServer.Start(new FluentMockServerSettings ReplaceSettings = new ProxyUrlReplaceSettings { "OldValue" = "old", - "NewValue" = "new", - + "NewValue" = "new" } } }); @@ -105,12 +104,20 @@ Where * `AllowAutoRedirect` = Proxy requests should follow redirection (30x). Default null / false. * `UseDefinedRequestMatchers` = When SaveMapping is set to true, this setting can be used to control the behavior of the generated request matchers for the new mapping. * `AppendGuidToSavedMappingFile` = Append an unique GUID to the filename from the saved mapping file. +* `ReplaceSettings` = Defines the ProxyUrlReplaceSettings. #### WebProxySettings * `Address` = Contains the address of the proxy server. * `UserName` = The user name associated with the credentials. * `Password` = The password for the user name associated with the credentials. +#### ProxyUrlReplaceSettings +This setting defines an old path param and a new path param to be replaced in the Url when proxying. + +* `OldValue` = The old path value to be replaced. +* `NewValue` = The new path value to use. +* `IgnoreCase` = Defines if the case should be ignore when replacing. + ### Example: When you a request like `localhost:9095/earth/story/20170510-terrifying-20m-tall-rogue-waves-are-actually-real`, this request is proxied to the `bbc.com` and the mapping definition is saved to `__admin\mappings\ab38efae-4e4d-4f20-8afe-635533ec2535.json`.