3 instantiations of YarpRoute
Aspire.Hosting.Yarp (1)
ConfigurationBuilder\YarpConfigurationBuilder.cs (1)
17
var route = new
YarpRoute
(cluster, routeId);
Aspire.Hosting.Yarp.Tests (2)
YarpConfigGeneratorTests.cs (2)
234
_validRoutes.Select(r => new
YarpRoute
(r)).ToList(),
253
_validRoutes.Select(r => new
YarpRoute
(r)).ToList(),
106 references to YarpRoute
Aspire.Hosting.Yarp (106)
ConfigurationBuilder\IYarpConfigurationBuilder.cs (8)
21
public
YarpRoute
AddRoute(string path, YarpCluster cluster);
150
public static
YarpRoute
AddRoute(this IYarpConfigurationBuilder builder, YarpCluster cluster)
162
public static
YarpRoute
AddRoute(this IYarpConfigurationBuilder builder, EndpointReference endpoint)
174
public static
YarpRoute
AddRoute(this IYarpConfigurationBuilder builder, IResourceBuilder<IResourceWithServiceDiscovery> resource)
187
public static
YarpRoute
AddRoute(this IYarpConfigurationBuilder builder, string path, EndpointReference endpoint)
201
public static
YarpRoute
AddRoute(this IYarpConfigurationBuilder builder, string path, IResourceBuilder<IResourceWithServiceDiscovery> resource)
215
public static
YarpRoute
AddRoute(this IYarpConfigurationBuilder builder, string path, IResourceBuilder<ExternalServiceResource> externalService)
228
public static
YarpRoute
AddRoute(this IYarpConfigurationBuilder builder, IResourceBuilder<ExternalServiceResource> externalService)
ConfigurationBuilder\Transforms\ForwardedTransformExtensions.cs (6)
18
public static
YarpRoute
WithTransformXForwarded(
19
this
YarpRoute
route,
35
public static
YarpRoute
WithTransformForwarded(this
YarpRoute
route, bool useHost = true, bool useProto = true,
46
public static
YarpRoute
WithTransformClientCertHeader(this
YarpRoute
route, string headerName)
ConfigurationBuilder\Transforms\HttpMethodTransformExtensions.cs (2)
18
public static
YarpRoute
WithTransformHttpMethodChange(this
YarpRoute
route, string fromHttpMethod, string toHttpMethod)
ConfigurationBuilder\Transforms\PathTransformExtensions.cs (20)
21
public static
YarpRoute
WithTransformPathSet(this
YarpRoute
route, PathString path)
38
/// <returns>The configured <see cref="
YarpRoute
"/>.</returns>
40
internal static
YarpRoute
WithTransformPathSet(this
YarpRoute
route, string path)
53
public static
YarpRoute
WithTransformPathPrefix(this
YarpRoute
route, PathString prefix)
70
/// <returns>The configured <see cref="
YarpRoute
"/>.</returns>
72
internal static
YarpRoute
WithTransformPathPrefix(this
YarpRoute
route, string prefix)
85
public static
YarpRoute
WithTransformPathRemovePrefix(this
YarpRoute
route, PathString prefix)
102
/// <returns>The configured <see cref="
YarpRoute
"/>.</returns>
104
internal static
YarpRoute
WithTransformPathRemovePrefix(this
YarpRoute
route, string prefix)
117
public static
YarpRoute
WithTransformPathRouteValues(this
YarpRoute
route, [StringSyntax("Route")] PathString pattern)
134
/// <returns>The configured <see cref="
YarpRoute
"/>.</returns>
136
internal static
YarpRoute
WithTransformPathRouteValues(this
YarpRoute
route, [StringSyntax("Route")] string pattern)
ConfigurationBuilder\Transforms\QueryTransformExtensions.cs (6)
18
public static
YarpRoute
WithTransformQueryValue(this
YarpRoute
route, string queryKey, string value, bool append = true)
28
public static
YarpRoute
WithTransformQueryRouteValue(this
YarpRoute
route, string queryKey, string routeValueKey, bool append = true)
38
public static
YarpRoute
WithTransformQueryRemoveKey(this
YarpRoute
route, string queryKey)
ConfigurationBuilder\Transforms\RequestHeadersTransformExtensions.cs (12)
17
public static
YarpRoute
WithTransformCopyRequestHeaders(this
YarpRoute
route, bool copy = true)
27
public static
YarpRoute
WithTransformUseOriginalHostHeader(this
YarpRoute
route, bool useOriginal = true)
37
public static
YarpRoute
WithTransformRequestHeader(this
YarpRoute
route, string headerName, string value, bool append = true)
47
public static
YarpRoute
WithTransformRequestHeaderRouteValue(this
YarpRoute
route, string headerName, string routeValueKey, bool append = true)
57
public static
YarpRoute
WithTransformRequestHeaderRemove(this
YarpRoute
route, string headerName)
68
public static
YarpRoute
WithTransformRequestHeadersAllowed(this
YarpRoute
route, params string[] allowedHeaders)
ConfigurationBuilder\Transforms\ResponseTransformExtensions.cs (16)
17
public static
YarpRoute
WithTransformCopyResponseHeaders(this
YarpRoute
route, bool copy = true)
27
public static
YarpRoute
WithTransformCopyResponseTrailers(this
YarpRoute
route, bool copy = true)
37
public static
YarpRoute
WithTransformResponseHeader(this
YarpRoute
route, string headerName, string value, bool append = true, ResponseCondition condition = ResponseCondition.Success)
47
public static
YarpRoute
WithTransformResponseHeaderRemove(this
YarpRoute
route, string headerName, ResponseCondition condition = ResponseCondition.Success)
58
public static
YarpRoute
WithTransformResponseHeadersAllowed(this
YarpRoute
route, params string[] allowedHeaders)
68
public static
YarpRoute
WithTransformResponseTrailer(this
YarpRoute
route, string headerName, string value, bool append = true, ResponseCondition condition = ResponseCondition.Success)
78
public static
YarpRoute
WithTransformResponseTrailerRemove(this
YarpRoute
route, string headerName, ResponseCondition condition = ResponseCondition.Success)
89
public static
YarpRoute
WithTransformResponseTrailersAllowed(this
YarpRoute
route, params string[] allowedHeaders)
ConfigurationBuilder\YarpConfigurationBuilder.cs (2)
14
public
YarpRoute
AddRoute(string path, YarpCluster cluster)
17
var
route = new YarpRoute(cluster, routeId);
ConfigurationBuilder\YarpRoute.cs (32)
48
public static
YarpRoute
WithMatch(this
YarpRoute
route, RouteMatch match)
58
internal static
YarpRoute
WithMatch(this
YarpRoute
route, YarpRouteMatch match)
68
private static
YarpRoute
ConfigureMatch(this
YarpRoute
route, Func<RouteMatch, RouteMatch> match)
78
public static
YarpRoute
WithMatchPath(this
YarpRoute
route, string path)
88
public static
YarpRoute
WithMatchMethods(this
YarpRoute
route, params string[] methods)
99
public static
YarpRoute
WithMatchHeaders(this
YarpRoute
route, params RouteHeader[] headers)
109
internal static
YarpRoute
WithMatchHeaders(this
YarpRoute
route, params YarpRouteHeaderMatch[] headers)
122
public static
YarpRoute
WithMatchHosts(this
YarpRoute
route, params string[] hosts)
133
public static
YarpRoute
WithMatchRouteQueryParameter(this
YarpRoute
route, params RouteQueryParameter[] queryParameters)
143
internal static
YarpRoute
WithMatchRouteQueryParameter(this
YarpRoute
route, params YarpRouteQueryParameterMatch[] queryParameters)
157
public static
YarpRoute
WithOrder(this
YarpRoute
route, int? order)
167
public static
YarpRoute
WithMaxRequestBodySize(this
YarpRoute
route, long maxRequestBodySize)
177
public static
YarpRoute
WithMetadata(this
YarpRoute
route, IReadOnlyDictionary<string, string>? metadata)
187
public static
YarpRoute
WithTransforms(this
YarpRoute
route, IReadOnlyList<IReadOnlyDictionary<string, string>>? transforms)
198
public static
YarpRoute
WithTransform(this
YarpRoute
route, Action<IDictionary<string, string>> createTransform)
216
internal static
YarpRoute
WithTransform(this
YarpRoute
route, IReadOnlyDictionary<string, string> transform)
YarpEnvConfigGenerator.cs (1)
15
public static void PopulateEnvVariables(Dictionary<string, object> environmentVariables, List<
YarpRoute
> routes, List<YarpCluster> clusters)
YarpResource.cs (1)
15
internal List<
YarpRoute
> Routes { get; } = [];