-
-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into issue-1217
- Loading branch information
Showing
12 changed files
with
166 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright © WireMock.Net | ||
|
||
namespace WireMock.Matchers; | ||
|
||
/// <summary> | ||
/// Provides some extension methods for matchers. | ||
/// </summary> | ||
public static class MatcherExtensions | ||
{ | ||
/// <summary> | ||
/// Determines if the match result is a perfect match. | ||
/// </summary> | ||
/// <param name="matcher">The string matcher.</param> | ||
/// <param name="input">The input string to match.</param> | ||
/// <returns><c>true</c>> if the match is perfect; otherwise, <c>false</c>>.</returns> | ||
public static bool IsPerfectMatch(this IStringMatcher matcher, string? input) | ||
{ | ||
return matcher.IsMatch(input).IsPerfect(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
// Copyright © WireMock.Net | ||
|
||
using System.Collections.Generic; | ||
using WireMock.Types; | ||
using WireMock.Util; | ||
|
||
namespace WireMock.Settings; | ||
|
||
/// <summary> | ||
/// WebhookSettings | ||
/// </summary> | ||
public class WebhookSettings : HttpClientSettings | ||
{ | ||
/// <summary> | ||
/// Executes an action after the transformation of the request body. | ||
/// </summary> | ||
/// <param name="mapping">The mapping used for the request.</param> | ||
/// <param name="requestUrl">The request Url.</param> | ||
/// <param name="bodyData">The body data of the request. [Optional]</param> | ||
/// <param name="headers">The headers of the request. [Optional]</param> | ||
public virtual void PostTransform(IMapping mapping, string requestUrl, IBodyData? bodyData = null, IDictionary<string, WireMockList<string>>? headers = null) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.