Updated Record (via proxy) AndSave (markdown)

Stef Heyenrath
2017-05-12 22:28:35 +02:00
parent 6508261df7
commit b96921798b
2 changed files with 14 additions and 1 deletions

@@ -1 +0,0 @@
##sadsd

@@ -0,0 +1,14 @@
# Record (via proxy) and Save
You can enable ProxyAndRecord functionality by defining the *ProxyAndRecordSettings* and by specifying an Url. See code example below.
```c#
var server = FluentMockServer.Start(new FluentMockServerSettings
{
Urls = new[] { "http://localhost:9095/" },
StartAdminInterface = true,
ProxyAndRecordSettings = new ProxyAndRecordSettings { Url = "http://www.bbc.com" }
});
```
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`.