Updated Settings (markdown)

Stef Heyenrath
2018-02-02 11:16:33 +01:00
parent cacfd4e1e8
commit 0dae8536cb

@@ -19,7 +19,8 @@ var server = FluentMockServer.Start(new FluentMockServerSettings
{ {
Url = "http://www.bbc.com", Url = "http://www.bbc.com",
SaveMapping = true, SaveMapping = true,
SaveMappingToFile = true SaveMappingToFile = true,
BlackListedHeaders = new [] { "dnt", "Content-Length" }
} }
}); });
``` ```
@@ -28,6 +29,7 @@ Where
* Url = The url to proxy to * Url = The url to proxy to
* SaveMapping = Save the mapping for each request/response to the internal Mappings * SaveMapping = Save the mapping for each request/response to the internal Mappings
* SaveMappingToFile = Save the mapping for each request/response to also file. (Note that SaveMapping must also be set to true.) * SaveMappingToFile = Save the mapping for each request/response to also file. (Note that SaveMapping must also be set to true.)
* BlackListedHeaders = Defines a list from headers which will excluded from the saved mappings.
### Example: ### 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`. 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`.