Add more tests for Proxy with Authorization (#555)

* WireMockServer_Proxy_Should_preserve_Authorization_header_in_proxied_request

* !admin

* x

* .
This commit is contained in:
Stef Heyenrath
2020-12-16 22:14:53 +01:00
committed by GitHub
parent fa08d0e617
commit fae27f9dc7
5 changed files with 72 additions and 34 deletions

View File

@@ -55,6 +55,16 @@ namespace WireMock.RequestBuilders
return _requestMatchers.OfType<T>().FirstOrDefault();
}
/// <summary>
/// Gets the request message matcher.
/// </summary>
/// <typeparam name="T">Type of IRequestMatcher</typeparam>
/// <returns>A RequestMatcher</returns>
public T GetRequestMessageMatcher<T>(Func<T, bool> func) where T : IRequestMatcher
{
return _requestMatchers.OfType<T>().FirstOrDefault(func);
}
/// <inheritdoc cref="IClientIPRequestBuilder.WithClientIP(IStringMatcher[])"/>
public IRequestBuilder WithClientIP(params IStringMatcher[] matchers)
{