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(),
86 references to YarpRoute
Aspire.Hosting.Yarp (86)
ConfigurationBuilder\IYarpConfigurationBuilder.cs (8)
20
public
YarpRoute
AddRoute(string path, YarpCluster cluster);
57
public static
YarpRoute
AddRoute(this IYarpConfigurationBuilder builder, YarpCluster cluster)
68
public static
YarpRoute
AddRoute(this IYarpConfigurationBuilder builder, EndpointReference endpoint)
79
public static
YarpRoute
AddRoute(this IYarpConfigurationBuilder builder, IResourceBuilder<IResourceWithServiceDiscovery> resource)
91
public static
YarpRoute
AddRoute(this IYarpConfigurationBuilder builder, string path, EndpointReference endpoint)
104
public static
YarpRoute
AddRoute(this IYarpConfigurationBuilder builder, string path, IResourceBuilder<IResourceWithServiceDiscovery> resource)
117
public static
YarpRoute
AddRoute(this IYarpConfigurationBuilder builder, string path, IResourceBuilder<ExternalServiceResource> externalService)
129
public static
YarpRoute
AddRoute(this IYarpConfigurationBuilder builder, IResourceBuilder<ExternalServiceResource> externalService)
ConfigurationBuilder\Transforms\ForwardedTransformExtensions.cs (6)
17
public static
YarpRoute
WithTransformXForwarded(
18
this
YarpRoute
route,
33
public static
YarpRoute
WithTransformForwarded(this
YarpRoute
route, bool useHost = true, bool useProto = true,
43
public static
YarpRoute
WithTransformClientCertHeader(this
YarpRoute
route, string headerName)
ConfigurationBuilder\Transforms\HttpMethodTransformExtensions.cs (2)
17
public static
YarpRoute
WithTransformHttpMethodChange(this
YarpRoute
route, string fromHttpMethod, string toHttpMethod)
ConfigurationBuilder\Transforms\PathTransformExtensions.cs (8)
19
public static
YarpRoute
WithTransformPathSet(this
YarpRoute
route, PathString path)
34
public static
YarpRoute
WithTransformPathPrefix(this
YarpRoute
route, PathString prefix)
49
public static
YarpRoute
WithTransformPathRemovePrefix(this
YarpRoute
route, PathString prefix)
64
public static
YarpRoute
WithTransformPathRouteValues(this
YarpRoute
route, [StringSyntax("Route")] PathString pattern)
ConfigurationBuilder\Transforms\QueryTransformExtensions.cs (6)
17
public static
YarpRoute
WithTransformQueryValue(this
YarpRoute
route, string queryKey, string value, bool append = true)
26
public static
YarpRoute
WithTransformQueryRouteValue(this
YarpRoute
route, string queryKey, string routeValueKey, bool append = true)
35
public static
YarpRoute
WithTransformQueryRemoveKey(this
YarpRoute
route, string queryKey)
ConfigurationBuilder\Transforms\RequestHeadersTransformExtensions.cs (12)
16
public static
YarpRoute
WithTransformCopyRequestHeaders(this
YarpRoute
route, bool copy = true)
25
public static
YarpRoute
WithTransformUseOriginalHostHeader(this
YarpRoute
route, bool useOriginal = true)
34
public static
YarpRoute
WithTransformRequestHeader(this
YarpRoute
route, string headerName, string value, bool append = true)
43
public static
YarpRoute
WithTransformRequestHeaderRouteValue(this
YarpRoute
route, string headerName, string routeValueKey, bool append = true)
52
public static
YarpRoute
WithTransformRequestHeaderRemove(this
YarpRoute
route, string headerName)
62
public static
YarpRoute
WithTransformRequestHeadersAllowed(this
YarpRoute
route, params string[] allowedHeaders)
ConfigurationBuilder\Transforms\ResponseTransformExtensions.cs (16)
16
public static
YarpRoute
WithTransformCopyResponseHeaders(this
YarpRoute
route, bool copy = true)
25
public static
YarpRoute
WithTransformCopyResponseTrailers(this
YarpRoute
route, bool copy = true)
34
public static
YarpRoute
WithTransformResponseHeader(this
YarpRoute
route, string headerName, string value, bool append = true, ResponseCondition condition = ResponseCondition.Success)
43
public static
YarpRoute
WithTransformResponseHeaderRemove(this
YarpRoute
route, string headerName, ResponseCondition condition = ResponseCondition.Success)
53
public static
YarpRoute
WithTransformResponseHeadersAllowed(this
YarpRoute
route, params string[] allowedHeaders)
62
public static
YarpRoute
WithTransformResponseTrailer(this
YarpRoute
route, string headerName, string value, bool append = true, ResponseCondition condition = ResponseCondition.Success)
71
public static
YarpRoute
WithTransformResponseTrailerRemove(this
YarpRoute
route, string headerName, ResponseCondition condition = ResponseCondition.Success)
81
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 (24)
45
public static
YarpRoute
WithMatch(this
YarpRoute
route, RouteMatch match)
53
private static
YarpRoute
ConfigureMatch(this
YarpRoute
route, Func<RouteMatch, RouteMatch> match)
62
public static
YarpRoute
WithMatchPath(this
YarpRoute
route, string path)
71
public static
YarpRoute
WithMatchMethods(this
YarpRoute
route, params string[] methods)
80
public static
YarpRoute
WithMatchHeaders(this
YarpRoute
route, params RouteHeader[] headers)
90
public static
YarpRoute
WithMatchHosts(this
YarpRoute
route, params string[] hosts)
99
public static
YarpRoute
WithMatchRouteQueryParameter(this
YarpRoute
route, params RouteQueryParameter[] queryParameters)
110
public static
YarpRoute
WithOrder(this
YarpRoute
route, int? order)
119
public static
YarpRoute
WithMaxRequestBodySize(this
YarpRoute
route, long maxRequestBodySize)
128
public static
YarpRoute
WithMetadata(this
YarpRoute
route, IReadOnlyDictionary<string, string>? metadata)
137
public static
YarpRoute
WithTransforms(this
YarpRoute
route, IReadOnlyList<IReadOnlyDictionary<string, string>>? transforms)
146
public static
YarpRoute
WithTransform(this
YarpRoute
route, Action<IDictionary<string, string>> createTransform)
YarpEnvConfigGenerator.cs (1)
15
public static void PopulateEnvVariables(Dictionary<string, object> environmentVariables, List<
YarpRoute
> routes, List<YarpCluster> clusters)
YarpResource.cs (1)
14
internal List<
YarpRoute
> Routes { get; } = new ();