mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-31 06:03:03 +02:00
* #630 Allow removal of prefix when proxying to another server * #630 Rename replace to replace settings and ensure properties used in place of fields * #630 Update replace settings type name to ProxyUrlReplaceSettings * #630 Add admin model and update settings parser to parse new values * Fix formatting issues * #630 Ensure json mapping between admin model and internal model takes place * #630 Refactor parsing and structure of extracting new proxy url * Reduce function complexity * #630 Fix line length issues and remove try prefix from parser methods
17 lines
492 B
C#
17 lines
492 B
C#
namespace WireMock.Settings;
|
|
|
|
/// <summary>
|
|
/// Defines an old path param and a new path param to be replaced when proxying.
|
|
/// </summary>
|
|
public class ProxyUrlReplaceSettings
|
|
{
|
|
/// <summary>
|
|
/// The old path value to be replaced by the new path value
|
|
/// </summary>
|
|
public string OldValue { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// The new path value to replace the old value with
|
|
/// </summary>
|
|
public string NewValue { get; set; } = null!;
|
|
} |