diff --git a/Web/Synergy.Web.Api.Testing/Json/Ignore.cs b/Web/Synergy.Web.Api.Testing/Json/Ignore.cs index de3b2e2..2a25940 100644 --- a/Web/Synergy.Web.Api.Testing/Json/Ignore.cs +++ b/Web/Synergy.Web.Api.Testing/Json/Ignore.cs @@ -40,6 +40,15 @@ public static Ignore RequestMethod() return new Ignore("$.request.method"); } + public static Ignore RequestHeaders(params string[] headers) + { + var ignore = new Ignore(); + if (headers.Any() == false) + ignore.Append(new[] {"$.request.headers"}); + ignore.Append(headers.Select(node=> $"$.request.headers.{node}")); + return ignore; + } + public static Ignore RequestDescription() { return new Ignore("$.request.description");