Summary

Class:WireMock.RequestBuilders.Request
Assembly:WireMock.Net
File(s):C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\RequestBuilders\Request.cs
Covered lines:208
Uncovered lines:6
Coverable lines:214
Total lines:418
Line coverage:97.1%
Branch coverage:100%

Metrics

MethodCyclomatic complexity NPath complexity Sequence coverage Branch coverage
Create()0010
GetRequestMessageMatchers()0011
GetRequestMessageMatcher()0011
WithClientIP(...)0010
WithClientIP(...)0010
WithClientIP(...)0010
WithClientIP(...)0010
WithPath(...)0010
WithPath(...)0010
WithPath(...)0010
WithPath(...)0010
WithUrl(...)0010
WithUrl(...)0010
WithUrl(...)0010
WithUrl(...)0010
UsingDelete(...)0010
UsingGet(...)0010
UsingHead(...)0010
UsingPost(...)0010
UsingPatch(...)0010
UsingPut(...)0010
UsingAnyMethod()0011
UsingAnyVerb()0000
UsingMethod(...)0010
UsingVerb(...)0000
UsingMethod(...)0010
WithBody(...)0010
WithBody(...)0010
WithBody(...)0010
WithBody(...)0010
WithBody(...)0010
WithBody(...)0010
WithBody(...)0010
WithParam(...)0010
WithParam(...)0010
WithParam(...)0010
WithParam(...)0010
WithParam(...)0010
WithParam(...)0010
WithHeader(...)0010
WithHeader(...)0010
WithHeader(...)0010
WithHeader(...)0010
WithHeader(...)0010
WithHeader(...)0010
WithCookie(...)0010
WithCookie(...)0010
WithCookie(...)0010
.ctor(...)0010

File(s)

C:\Users\StefHeyenrath\Documents\GitHub\WireMock.Net\src\WireMock.Net\RequestBuilders\Request.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Collections.ObjectModel;
 4using System.Linq;
 5using WireMock.Matchers;
 6using WireMock.Matchers.Request;
 7using WireMock.Util;
 8using WireMock.Validation;
 9
 10namespace WireMock.RequestBuilders
 11{
 12    /// <summary>
 13    /// The requests.
 14    /// </summary>
 15    public class Request : RequestMessageCompositeMatcher, IRequestBuilder
 16    {
 17        private readonly IList<IRequestMatcher> _requestMatchers;
 18
 19        /// <summary>
 20        /// Creates this instance.
 21        /// </summary>
 22        /// <returns>The <see cref="IRequestBuilder"/>.</returns>
 23        public static IRequestBuilder Create()
 31224        {
 31225            return new Request(new List<IRequestMatcher>());
 31226        }
 27
 28        /// <summary>
 29        /// Initializes a new instance of the <see cref="Request"/> class.
 30        /// </summary>
 31        /// <param name="requestMatchers">The request matchers.</param>
 31232        private Request(IList<IRequestMatcher> requestMatchers) : base(requestMatchers)
 31233        {
 31234            _requestMatchers = requestMatchers;
 31235        }
 36
 37        /// <summary>
 38        /// Gets the request message matchers.
 39        /// </summary>
 40        /// <typeparam name="T">Type of IRequestMatcher</typeparam>
 41        /// <returns>A List{T}</returns>
 42        public IList<T> GetRequestMessageMatchers<T>() where T : IRequestMatcher
 1243        {
 1844            return new ReadOnlyCollection<T>(_requestMatchers.Where(rm => rm is T).Cast<T>().ToList());
 1245        }
 46
 47        /// <summary>
 48        /// Gets the request message matcher.
 49        /// </summary>
 50        /// <typeparam name="T">Type of IRequestMatcher</typeparam>
 51        /// <returns>A RequestMatcher</returns>
 52        public T GetRequestMessageMatcher<T>() where T : IRequestMatcher
 453        {
 654            return _requestMatchers.Where(rm => rm is T).Cast<T>().FirstOrDefault();
 455        }
 56
 57        /// <inheritdoc cref="IClientIPRequestBuilder.WithClientIP(IStringMatcher[])"/>
 58        public IRequestBuilder WithClientIP(params IStringMatcher[] matchers)
 159        {
 160            Check.NotNullOrEmpty(matchers, nameof(matchers));
 61
 162            _requestMatchers.Add(new RequestMessageClientIPMatcher(matchers));
 163            return this;
 164        }
 65
 66        /// <inheritdoc cref="IClientIPRequestBuilder.WithClientIP(string[])"/>
 67        public IRequestBuilder WithClientIP(params string[] clientIPs)
 268        {
 269            return WithClientIP(MatchBehaviour.AcceptOnMatch, clientIPs);
 270        }
 71
 72        /// <inheritdoc cref="IClientIPRequestBuilder.WithClientIP(string[])"/>
 73        public IRequestBuilder WithClientIP(MatchBehaviour matchBehaviour, params string[] clientIPs)
 274        {
 275            Check.NotNullOrEmpty(clientIPs, nameof(clientIPs));
 76
 277            _requestMatchers.Add(new RequestMessageClientIPMatcher(matchBehaviour, clientIPs));
 278            return this;
 279        }
 80
 81        /// <inheritdoc cref="IClientIPRequestBuilder.WithClientIP(Func{string, bool}[])"/>
 82        public IRequestBuilder WithClientIP(params Func<string, bool>[] funcs)
 183        {
 184            Check.NotNullOrEmpty(funcs, nameof(funcs));
 85
 186            _requestMatchers.Add(new RequestMessageClientIPMatcher(funcs));
 187            return this;
 188        }
 89
 90        /// <inheritdoc cref="IUrlAndPathRequestBuilder.WithPath(IStringMatcher[])"/>
 91        public IRequestBuilder WithPath(params IStringMatcher[] matchers)
 6692        {
 6693            Check.NotNullOrEmpty(matchers, nameof(matchers));
 94
 6695            _requestMatchers.Add(new RequestMessagePathMatcher(matchers));
 6696            return this;
 6697        }
 98
 99        /// <inheritdoc cref="IUrlAndPathRequestBuilder.WithPath(string[])"/>
 100        public IRequestBuilder WithPath(params string[] paths)
 196101        {
 196102            return WithPath(MatchBehaviour.AcceptOnMatch, paths);
 197103        }
 104
 105        /// <inheritdoc cref="IUrlAndPathRequestBuilder.WithPath(MatchBehaviour, string[])"/>
 106        public IRequestBuilder WithPath(MatchBehaviour matchBehaviour, params string[] paths)
 197107        {
 197108            Check.NotNullOrEmpty(paths, nameof(paths));
 109
 196110            _requestMatchers.Add(new RequestMessagePathMatcher(matchBehaviour, paths));
 197111            return this;
 197112        }
 113
 114        /// <inheritdoc cref="IUrlAndPathRequestBuilder.WithPath(Func{string, bool}[])"/>
 115        public IRequestBuilder WithPath(params Func<string, bool>[] funcs)
 1116        {
 1117            Check.NotNullOrEmpty(funcs, nameof(funcs));
 118
 1119            _requestMatchers.Add(new RequestMessagePathMatcher(funcs));
 1120            return this;
 1121        }
 122
 123        /// <inheritdoc cref="IUrlAndPathRequestBuilder.WithUrl(IStringMatcher[])"/>
 124        public IRequestBuilder WithUrl(params IStringMatcher[] matchers)
 1125        {
 1126            Check.NotNullOrEmpty(matchers, nameof(matchers));
 127
 1128            _requestMatchers.Add(new RequestMessageUrlMatcher(matchers));
 1129            return this;
 1130        }
 131
 132        /// <inheritdoc cref="IUrlAndPathRequestBuilder.WithUrl(string[])"/>
 133        public IRequestBuilder WithUrl(params string[] urls)
 1134        {
 1135            return WithUrl(MatchBehaviour.AcceptOnMatch, urls);
 1136        }
 137
 138        /// <inheritdoc cref="IUrlAndPathRequestBuilder.WithUrl(MatchBehaviour, string[])"/>
 139        public IRequestBuilder WithUrl(MatchBehaviour matchBehaviour, params string[] urls)
 1140        {
 1141            Check.NotNullOrEmpty(urls, nameof(urls));
 142
 1143            _requestMatchers.Add(new RequestMessageUrlMatcher(matchBehaviour, urls));
 1144            return this;
 1145        }
 146
 147        /// <inheritdoc cref="IUrlAndPathRequestBuilder.WithUrl(Func{string, bool}[])"/>
 148        public IRequestBuilder WithUrl(params Func<string, bool>[] funcs)
 1149        {
 1150            Check.NotNullOrEmpty(funcs, nameof(funcs));
 151
 1152            _requestMatchers.Add(new RequestMessageUrlMatcher(funcs));
 1153            return this;
 1154        }
 155
 156        /// <inheritdoc cref="IMethodRequestBuilder.UsingDelete(MatchBehaviour)"/>
 157        public IRequestBuilder UsingDelete(MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
 56158        {
 56159            _requestMatchers.Add(new RequestMessageMethodMatcher(matchBehaviour, "DELETE"));
 56160            return this;
 56161        }
 162
 163        /// <inheritdoc cref="IMethodRequestBuilder.UsingGet(MatchBehaviour)"/>
 164        public IRequestBuilder UsingGet(MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
 91165        {
 91166            _requestMatchers.Add(new RequestMessageMethodMatcher(matchBehaviour, "GET"));
 91167            return this;
 91168        }
 169
 170        /// <inheritdoc cref="IMethodRequestBuilder.UsingHead(MatchBehaviour)"/>
 171        public IRequestBuilder UsingHead(MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
 1172        {
 1173            _requestMatchers.Add(new RequestMessageMethodMatcher(matchBehaviour, "HEAD"));
 1174            return this;
 1175        }
 176
 177        /// <inheritdoc cref="IMethodRequestBuilder.UsingPost(MatchBehaviour)"/>
 178        public IRequestBuilder UsingPost(MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
 68179        {
 68180            _requestMatchers.Add(new RequestMessageMethodMatcher(matchBehaviour, "POST"));
 68181            return this;
 68182        }
 183
 184        /// <inheritdoc cref="IMethodRequestBuilder.UsingPatch(MatchBehaviour)"/>
 185        public IRequestBuilder UsingPatch(MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
 2186        {
 2187            _requestMatchers.Add(new RequestMessageMethodMatcher(matchBehaviour, "PATCH"));
 2188            return this;
 2189        }
 190
 191        /// <inheritdoc cref="IMethodRequestBuilder.UsingPut(MatchBehaviour)"/>
 192        public IRequestBuilder UsingPut(MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
 14193        {
 14194            _requestMatchers.Add(new RequestMessageMethodMatcher(matchBehaviour, "PUT"));
 14195            return this;
 14196        }
 197
 198        /// <inheritdoc cref="IMethodRequestBuilder.UsingAnyMethod"/>
 199        public IRequestBuilder UsingAnyMethod()
 26200        {
 32201            var matchers = _requestMatchers.Where(m => m is RequestMessageMethodMatcher).ToList();
 80202            foreach (var matcher in matchers)
 1203            {
 1204                _requestMatchers.Remove(matcher);
 1205            }
 206
 26207            return this;
 26208        }
 209
 210        /// <inheritdoc cref="IMethodRequestBuilder.UsingAnyVerb"/>
 211        public IRequestBuilder UsingAnyVerb()
 0212        {
 0213            return UsingAnyMethod();
 0214        }
 215
 216        /// <inheritdoc cref="IMethodRequestBuilder.UsingMethod(string[])"/>
 217        public IRequestBuilder UsingMethod(params string[] methods)
 22218        {
 22219            return UsingMethod(MatchBehaviour.AcceptOnMatch, methods);
 22220        }
 221
 222        /// <inheritdoc cref="IMethodRequestBuilder.UsingVerb(string[])"/>
 223        public IRequestBuilder UsingVerb(params string[] verbs)
 0224        {
 0225            return UsingMethod(verbs);
 0226        }
 227
 228        /// <inheritdoc cref="IMethodRequestBuilder.UsingMethod(MatchBehaviour, string[])"/>
 229        public IRequestBuilder UsingMethod(MatchBehaviour matchBehaviour, params string[] methods)
 22230        {
 22231            Check.NotNullOrEmpty(methods, nameof(methods));
 232
 22233            _requestMatchers.Add(new RequestMessageMethodMatcher(matchBehaviour, methods));
 22234            return this;
 22235        }
 236
 237        /// <inheritdoc cref="IBodyRequestBuilder.WithBody(string, MatchBehaviour)"/>
 238        public IRequestBuilder WithBody(string body, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
 2239        {
 2240            _requestMatchers.Add(new RequestMessageBodyMatcher(matchBehaviour, body));
 2241            return this;
 2242        }
 243
 244        /// <inheritdoc cref="IBodyRequestBuilder.WithBody(byte[], MatchBehaviour)"/>
 245        public IRequestBuilder WithBody(byte[] body, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
 1246        {
 1247            _requestMatchers.Add(new RequestMessageBodyMatcher(matchBehaviour, body));
 1248            return this;
 1249        }
 250
 251        /// <inheritdoc cref="IBodyRequestBuilder.WithBody(object, MatchBehaviour)"/>
 252        public IRequestBuilder WithBody(object body, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
 1253        {
 1254            _requestMatchers.Add(new RequestMessageBodyMatcher(matchBehaviour, body));
 1255            return this;
 1256        }
 257
 258        /// <inheritdoc cref="IBodyRequestBuilder.WithBody(IMatcher)"/>
 259        public IRequestBuilder WithBody(IMatcher matcher)
 13260        {
 13261            Check.NotNull(matcher, nameof(matcher));
 262
 13263            _requestMatchers.Add(new RequestMessageBodyMatcher(matcher));
 13264            return this;
 13265        }
 266
 267        /// <inheritdoc cref="IBodyRequestBuilder.WithBody(Func{string, bool})"/>
 268        public IRequestBuilder WithBody(Func<string, bool> func)
 1269        {
 1270            Check.NotNull(func, nameof(func));
 271
 1272            _requestMatchers.Add(new RequestMessageBodyMatcher(func));
 1273            return this;
 1274        }
 275
 276        /// <inheritdoc cref="IBodyRequestBuilder.WithBody(Func{byte[], bool})"/>
 277        public IRequestBuilder WithBody(Func<byte[], bool> func)
 1278        {
 1279            Check.NotNull(func, nameof(func));
 280
 1281            _requestMatchers.Add(new RequestMessageBodyMatcher(func));
 1282            return this;
 1283        }
 284
 285        /// <inheritdoc cref="IBodyRequestBuilder.WithBody(Func{object, bool})"/>
 286        public IRequestBuilder WithBody(Func<object, bool> func)
 1287        {
 1288            Check.NotNull(func, nameof(func));
 289
 1290            _requestMatchers.Add(new RequestMessageBodyMatcher(func));
 1291            return this;
 1292        }
 293
 294        /// <inheritdoc cref="IParamsRequestBuilder.WithParam(string, MatchBehaviour)"/>
 295        public IRequestBuilder WithParam(string key, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
 1296        {
 1297            Check.NotNull(key, nameof(key));
 298
 1299            _requestMatchers.Add(new RequestMessageParamMatcher(matchBehaviour, key));
 1300            return this;
 1301        }
 302
 303        /// <inheritdoc cref="IParamsRequestBuilder.WithParam(string, string[])"/>
 304        public IRequestBuilder WithParam(string key, params string[] values)
 3305        {
 3306            return WithParam(key, MatchBehaviour.AcceptOnMatch, values);
 3307        }
 308
 309        /// <inheritdoc cref="IParamsRequestBuilder.WithParam(string, IStringMatcher[])"/>
 310        public IRequestBuilder WithParam(string key, params IStringMatcher[] matchers)
 1311        {
 1312            return WithParam(key, MatchBehaviour.AcceptOnMatch, matchers);
 1313        }
 314
 315        /// <inheritdoc cref="IParamsRequestBuilder.WithParam(string, MatchBehaviour, string[])"/>
 316        public IRequestBuilder WithParam(string key, MatchBehaviour matchBehaviour, params string[] values)
 3317        {
 3318            Check.NotNull(key, nameof(key));
 319
 3320            _requestMatchers.Add(new RequestMessageParamMatcher(matchBehaviour, key, values));
 3321            return this;
 3322        }
 323
 324        /// <inheritdoc cref="IParamsRequestBuilder.WithParam(string, MatchBehaviour, IStringMatcher[])"/>
 325        public IRequestBuilder WithParam(string key, MatchBehaviour matchBehaviour, params IStringMatcher[] matchers)
 2326        {
 2327            Check.NotNull(key, nameof(key));
 328
 2329            _requestMatchers.Add(new RequestMessageParamMatcher(matchBehaviour, key, matchers));
 2330            return this;
 2331        }
 332
 333        /// <inheritdoc cref="IParamsRequestBuilder.WithParam(Func{IDictionary{string, WireMockList{string}}, bool}[])"/
 334        public IRequestBuilder WithParam(params Func<IDictionary<string, WireMockList<string>>, bool>[] funcs)
 1335        {
 1336            Check.NotNullOrEmpty(funcs, nameof(funcs));
 337
 1338            _requestMatchers.Add(new RequestMessageParamMatcher(funcs));
 1339            return this;
 1340        }
 341
 342        /// <inheritdoc cref="IHeadersAndCookiesRequestBuilder.WithHeader(string, string, MatchBehaviour)"/>
 343        public IRequestBuilder WithHeader(string name, string pattern, MatchBehaviour matchBehaviour)
 1344        {
 1345            return WithHeader(name, pattern, true, matchBehaviour);
 1346        }
 347
 348        /// <inheritdoc cref="IHeadersAndCookiesRequestBuilder.WithHeader(string, string, bool, MatchBehaviour)"/>
 349        public IRequestBuilder WithHeader(string name, string pattern, bool ignoreCase = true, MatchBehaviour matchBehav
 39350        {
 39351            Check.NotNull(name, nameof(name));
 39352            Check.NotNull(pattern, nameof(pattern));
 353
 39354            _requestMatchers.Add(new RequestMessageHeaderMatcher(matchBehaviour, name, pattern, ignoreCase));
 39355            return this;
 39356        }
 357
 358        /// <inheritdoc cref="IHeadersAndCookiesRequestBuilder.WithHeader(string, string[], MatchBehaviour)"/>
 359        public IRequestBuilder WithHeader(string name, string[] patterns, MatchBehaviour matchBehaviour)
 1360        {
 1361            return WithHeader(name, patterns, true, matchBehaviour);
 1362        }
 363
 364        /// <inheritdoc cref="IHeadersAndCookiesRequestBuilder.WithHeader(string, string[], bool, MatchBehaviour)"/>
 365        public IRequestBuilder WithHeader(string name, string[] patterns, bool ignoreCase = true, MatchBehaviour matchBe
 2366        {
 2367            Check.NotNull(name, nameof(name));
 2368            Check.NotNull(patterns, nameof(patterns));
 369
 2370            _requestMatchers.Add(new RequestMessageHeaderMatcher(matchBehaviour, name, patterns, ignoreCase));
 2371            return this;
 2372        }
 373
 374        /// <inheritdoc cref="IHeadersAndCookiesRequestBuilder.WithHeader(string, IStringMatcher[])"/>
 375        public IRequestBuilder WithHeader(string name, params IStringMatcher[] matchers)
 1376        {
 1377            Check.NotNull(name, nameof(name));
 1378            Check.NotNullOrEmpty(matchers, nameof(matchers));
 379
 1380            _requestMatchers.Add(new RequestMessageHeaderMatcher(name, matchers));
 1381            return this;
 1382        }
 383
 384        /// <inheritdoc cref="IHeadersAndCookiesRequestBuilder.WithHeader(Func{IDictionary{string, string[]}, bool}[])"/
 385        public IRequestBuilder WithHeader(params Func<IDictionary<string, string[]>, bool>[] funcs)
 1386        {
 1387            Check.NotNullOrEmpty(funcs, nameof(funcs));
 388
 1389            _requestMatchers.Add(new RequestMessageHeaderMatcher(funcs));
 1390            return this;
 1391        }
 392
 393        /// <inheritdoc cref="IHeadersAndCookiesRequestBuilder.WithCookie(string, string, bool, MatchBehaviour)"/>
 394        public IRequestBuilder WithCookie(string name, string pattern, bool ignoreCase = true, MatchBehaviour matchBehav
 2395        {
 2396            _requestMatchers.Add(new RequestMessageCookieMatcher(matchBehaviour, name, pattern, ignoreCase));
 2397            return this;
 2398        }
 399
 400        /// <inheritdoc cref="IHeadersAndCookiesRequestBuilder.WithCookie(string, IStringMatcher[])"/>
 401        public IRequestBuilder WithCookie(string name, params IStringMatcher[] matchers)
 1402        {
 1403            Check.NotNullOrEmpty(matchers, nameof(matchers));
 404
 1405            _requestMatchers.Add(new RequestMessageCookieMatcher(name, matchers));
 1406            return this;
 1407        }
 408
 409        /// <inheritdoc cref="IHeadersAndCookiesRequestBuilder.WithCookie(Func{IDictionary{string, string}, bool}[])"/>
 410        public IRequestBuilder WithCookie(params Func<IDictionary<string, string>, bool>[] funcs)
 1411        {
 1412            Check.NotNullOrEmpty(funcs, nameof(funcs));
 413
 1414            _requestMatchers.Add(new RequestMessageCookieMatcher(funcs));
 1415            return this;
 1416        }
 417    }
 418}

Methods/Properties

Create()
.ctor(System.Collections.Generic.IList`1<WireMock.Matchers.Request.IRequestMatcher>)
GetRequestMessageMatchers()
GetRequestMessageMatcher()
WithClientIP(WireMock.Matchers.IStringMatcher[])
WithClientIP(System.String[])
WithClientIP(WireMock.Matchers.MatchBehaviour,System.String[])
WithClientIP(System.Func`2<System.String,System.Boolean>[])
WithPath(WireMock.Matchers.IStringMatcher[])
WithPath(System.String[])
WithPath(WireMock.Matchers.MatchBehaviour,System.String[])
WithPath(System.Func`2<System.String,System.Boolean>[])
WithUrl(WireMock.Matchers.IStringMatcher[])
WithUrl(System.String[])
WithUrl(WireMock.Matchers.MatchBehaviour,System.String[])
WithUrl(System.Func`2<System.String,System.Boolean>[])
UsingDelete(WireMock.Matchers.MatchBehaviour)
UsingGet(WireMock.Matchers.MatchBehaviour)
UsingHead(WireMock.Matchers.MatchBehaviour)
UsingPost(WireMock.Matchers.MatchBehaviour)
UsingPatch(WireMock.Matchers.MatchBehaviour)
UsingPut(WireMock.Matchers.MatchBehaviour)
UsingAnyMethod()
UsingAnyVerb()
UsingMethod(System.String[])
UsingVerb(System.String[])
UsingMethod(WireMock.Matchers.MatchBehaviour,System.String[])
WithBody(System.String,WireMock.Matchers.MatchBehaviour)
WithBody(System.Byte[],WireMock.Matchers.MatchBehaviour)
WithBody(System.Object,WireMock.Matchers.MatchBehaviour)
WithBody(WireMock.Matchers.IMatcher)
WithBody(System.Func`2<System.String,System.Boolean>)
WithBody(System.Func`2<System.Byte[],System.Boolean>)
WithBody(System.Func`2<System.Object,System.Boolean>)
WithParam(System.String,WireMock.Matchers.MatchBehaviour)
WithParam(System.String,System.String[])
WithParam(System.String,WireMock.Matchers.IStringMatcher[])
WithParam(System.String,WireMock.Matchers.MatchBehaviour,System.String[])
WithParam(System.String,WireMock.Matchers.MatchBehaviour,WireMock.Matchers.IStringMatcher[])
WithParam(System.Func`2<System.Collections.Generic.IDictionary`2<System.String,WireMock.Util.WireMockList`1<System.String>>,System.Boolean>[])
WithHeader(System.String,System.String,WireMock.Matchers.MatchBehaviour)
WithHeader(System.String,System.String,System.Boolean,WireMock.Matchers.MatchBehaviour)
WithHeader(System.String,System.String[],WireMock.Matchers.MatchBehaviour)
WithHeader(System.String,System.String[],System.Boolean,WireMock.Matchers.MatchBehaviour)
WithHeader(System.String,WireMock.Matchers.IStringMatcher[])
WithHeader(System.Func`2<System.Collections.Generic.IDictionary`2<System.String,System.String[]>,System.Boolean>[])
WithCookie(System.String,System.String,System.Boolean,WireMock.Matchers.MatchBehaviour)
WithCookie(System.String,WireMock.Matchers.IStringMatcher[])
WithCookie(System.Func`2<System.Collections.Generic.IDictionary`2<System.String,System.String>,System.Boolean>[])