mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-18 07:24:34 +01:00
Updated Settings (markdown)
@@ -33,7 +33,8 @@ var server = FluentMockServer.Start(new FluentMockServerSettings
|
||||
SaveMapping = true,
|
||||
SaveMappingToFile = true,
|
||||
BlackListedHeaders = new [] { "dnt", "Content-Length" },
|
||||
BlackListedCookies = new [] { "c1", "c2" }
|
||||
BlackListedCookies = new [] { "c1", "c2" },
|
||||
SaveMappingForStatusCodePattern = "2xx"
|
||||
}
|
||||
});
|
||||
```
|
||||
@@ -42,6 +43,7 @@ Where
|
||||
* Url = The url to proxy to
|
||||
* 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.)
|
||||
* SaveMappingForStatusCodePattern = Only save request/response to the internal Mappings if the status code is included in this pattern. (Note that SaveMapping must also be set to true.) The pattern can contain a single value like "200", but also ranges like "2xx", "100,300,600" or "100-299,6xx" are supported.
|
||||
* BlackListedHeaders = Defines a list from headers which will excluded from the saved mappings.
|
||||
* ClientX509Certificate2ThumbprintOrSubjectName = The clientCertificate thumbprint or subject name fragment to use.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user