mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-26 18:28:27 +02:00
Add blacklist for Request Cookies. (#319)
* Add blacklist for Request Cookies. Refactor code. Fix tests. * Fix tests and address code review notes * Fix tests
This commit is contained in:
committed by
Stef Heyenrath
parent
da8bb717f4
commit
4c74d1a4cc
@@ -30,5 +30,10 @@
|
||||
/// Defines a list from headers which will excluded from the saved mappings.
|
||||
/// </summary>
|
||||
string[] BlackListedHeaders { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Defines a list of cookies which will excluded from the saved mappings.
|
||||
/// </summary>
|
||||
string[] BlackListedCookies { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,5 +26,9 @@ namespace WireMock.Settings
|
||||
/// <inheritdoc cref="IProxyAndRecordSettings.BlackListedHeaders"/>
|
||||
[PublicAPI]
|
||||
public string[] BlackListedHeaders { get; set; }
|
||||
|
||||
/// <inheritdoc cref="IProxyAndRecordSettings.BlackListedCookies"/>
|
||||
[PublicAPI]
|
||||
public string[] BlackListedCookies { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user