mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-11-14 21:04:27 +01:00
WithProxy
This commit is contained in:
1 parent
7bfd9f3343
commit
2c8142b93d
5 files changed
+6
-6
No files matched your search
@@ -12,6 +12,6 @@ namespace WireMock.ResponseBuilders
|
||||
/// </summary>
|
||||
/// <param name="proxyUrl">The proxy url.</param>
|
||||
/// <returns>A <see cref="IResponseBuilder"/>.</returns>
|
||||
IResponseBuilder FromProxyUrl([NotNull] string proxyUrl);
|
||||
IResponseBuilder WithProxy([NotNull] string proxyUrl);
|
||||
}
|
||||
}
|
||||
@@ -244,7 +244,7 @@ namespace WireMock.ResponseBuilders
|
||||
/// <param name="proxyUrl">The proxy url.</param>
|
||||
/// <returns>A <see cref="IResponseBuilder"/>.</returns>
|
||||
[PublicAPI]
|
||||
public IResponseBuilder FromProxyUrl(string proxyUrl)
|
||||
public IResponseBuilder WithProxy(string proxyUrl)
|
||||
{
|
||||
Check.NotEmpty(proxyUrl, nameof(proxyUrl));
|
||||
|
||||
|
||||
@@ -471,7 +471,7 @@ namespace WireMock.Server
|
||||
|
||||
if (!string.IsNullOrEmpty(responseModel.ProxyUrl))
|
||||
{
|
||||
return responseBuilder.FromProxyUrl(responseModel.ProxyUrl);
|
||||
return responseBuilder.WithProxy(responseModel.ProxyUrl);
|
||||
}
|
||||
|
||||
if (responseModel.StatusCode.HasValue)
|
||||
|
||||
Reference in new issue
Block a user