Updated Settings (markdown)

Stef Heyenrath
2024-03-02 09:38:08 +01:00
parent 467db027e9
commit 0c18cf34ee

@@ -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 <c>true</c>, 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`.