mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-19 15:53:54 +01:00
* . * set * . * . * . * . * prio * appsettings * TinyMapperUtils * set * p * nullable * . * , * fs * . * . * --PreferProxyMapping
53 lines
1.8 KiB
C#
53 lines
1.8 KiB
C#
using JetBrains.Annotations;
|
|
|
|
namespace WireMock.Settings
|
|
{
|
|
/// <summary>
|
|
/// ProxyAndRecordSettings
|
|
/// </summary>
|
|
public class ProxyAndRecordSettings : HttpClientSettings
|
|
{
|
|
/// <summary>
|
|
/// The URL to proxy.
|
|
/// </summary>
|
|
[PublicAPI]
|
|
public string Url { get; set; }
|
|
|
|
/// <summary>
|
|
/// Save the mapping for each request/response to the internal Mappings.
|
|
/// </summary>
|
|
[PublicAPI]
|
|
public bool SaveMapping { get; set; }
|
|
|
|
/// <summary>
|
|
/// Save the mapping for each request/response also to a file. (Note that SaveMapping must also be set to true.)
|
|
/// </summary>
|
|
[PublicAPI]
|
|
public bool SaveMappingToFile { get; set; }
|
|
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
[PublicAPI]
|
|
public string SaveMappingForStatusCodePattern { get; set; } = "*";
|
|
|
|
/// <summary>
|
|
/// Defines a list from headers which will be excluded from the saved mappings.
|
|
/// </summary>
|
|
[PublicAPI]
|
|
public string[] ExcludedHeaders { get; set; }
|
|
|
|
/// <summary>
|
|
/// Defines a list of cookies which will be excluded from the saved mappings.
|
|
/// </summary>
|
|
[PublicAPI]
|
|
public string[] ExcludedCookies { get; set; }
|
|
|
|
/// <summary>
|
|
/// Prefer the Proxy Mapping over the saved Mapping (in case SaveMapping is set to <c>true</c>).
|
|
/// </summary>
|
|
//[PublicAPI]
|
|
//public bool PreferProxyMapping { get; set; }
|
|
}
|
|
} |