mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-21 08:39:00 +01:00
Updated Record (via proxy) AndSave (markdown)
@@ -1 +0,0 @@
|
||||
##sadsd
|
||||
14
Record-(via-proxy)-and-Save.md
Normal file
14
Record-(via-proxy)-and-Save.md
Normal file
@@ -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`.
|
||||
Reference in New Issue
Block a user