You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ReverseProxy/Routing/DirectForwardingIEndpointRouteBuilderExtensions.cs
+41-8Lines changed: 41 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
// Licensed under the MIT License.
3
3
4
4
usingSystem;
5
+
usingSystem.Diagnostics.CodeAnalysis;
5
6
usingSystem.Net.Http;
6
7
usingMicrosoft.AspNetCore.Routing;
7
8
usingMicrosoft.Extensions.DependencyInjection;
@@ -19,39 +20,59 @@ public static class DirectForwardingIEndpointRouteBuilderExtensions
19
20
/// <summary>
20
21
/// Adds direct forwarding of HTTP requests that match the specified pattern to a specific destination using default configuration for the outgoing request, default transforms, and default HTTP client.
/// Adds direct forwarding of HTTP requests that match the specified pattern to a specific destination and target path applying route values from the pattern using default configuration for the outgoing request, and default HTTP client.
/// Adds direct forwarding of HTTP requests that match the specified pattern to a specific destination and target path applying route values from the pattern using customized configuration for the outgoing request, and default HTTP client.
returnendpoints.MapForwarder(pattern,destinationPrefix,requestConfig, b =>b.AddPathRouteValues(targetPath));
41
54
}
42
55
43
56
/// <summary>
44
57
/// Adds direct forwarding of HTTP requests that match the specified pattern to a specific destination using default configuration for the outgoing request, customized transforms, and default HTTP client.
/// Adds direct forwarding of HTTP requests that match the specified pattern to a specific destination using customized configuration for the outgoing request, customized transforms, and default HTTP client.
@@ -63,15 +84,23 @@ public static IEndpointConventionBuilder MapForwarder(this IEndpointRouteBuilder
63
84
/// <summary>
64
85
/// Adds direct forwarding of HTTP requests that match the specified pattern to a specific destination using customized configuration for the outgoing request, default transforms, and default HTTP client.
/// Adds direct forwarding of HTTP requests that match the specified pattern to a specific destination using customized configuration for the outgoing request, customized transforms, and default HTTP client.
@@ -81,7 +110,11 @@ public static IEndpointConventionBuilder MapForwarder(this IEndpointRouteBuilder
81
110
/// <summary>
82
111
/// Adds direct forwarding of HTTP requests that match the specified pattern to a specific destination using customized configuration for the outgoing request, customized transforms, and customized HTTP client.
0 commit comments