mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-02-19 00:37:42 +01:00
* wip * ... * . * ... * ... * path * url * b * t * client * . * RequestMessageMethodMatcherTests * . * h * . * fix tests * .
24 lines
556 B
C#
24 lines
556 B
C#
using System.Net.Http;
|
|
|
|
namespace WireMock.Http;
|
|
|
|
internal static class HttpClientFactory2
|
|
{
|
|
public static HttpClient Create(params DelegatingHandler[] handlers)
|
|
{
|
|
#if NETSTANDARD1_3
|
|
return new HttpClient();
|
|
#else
|
|
return HttpClientFactory.Create(handlers);
|
|
#endif
|
|
}
|
|
|
|
public static HttpClient Create(HttpMessageHandler innerHandler, params DelegatingHandler[] handlers)
|
|
{
|
|
#if NETSTANDARD1_3
|
|
return new HttpClient(innerHandler);
|
|
#else
|
|
return HttpClientFactory.Create(innerHandler, handlers);
|
|
#endif
|
|
}
|
|
} |