Class PathRouteValuesTransform
Generates a new request path by plugging matched route parameters into the given pattern.
Inherited Members
Namespace: Yarp.ReverseProxy.Transforms
Assembly: Yarp.ReverseProxy.dll
Syntax
public class PathRouteValuesTransform : RequestTransform
Constructors
| Improve this Doc View SourcePathRouteValuesTransform(String, TemplateBinderFactory)
Creates a new transform.
Declaration
public PathRouteValuesTransform(string pattern, TemplateBinderFactory binderFactory)
Parameters
Type | Name | Description |
---|---|---|
System.String | pattern | The pattern used to create the new request path. |
TemplateBinderFactory | binderFactory | The factory used to bind route parameters to the given path pattern. |
Methods
| Improve this Doc View SourceApplyAsync(RequestTransformContext)
Transforms any of the available fields before building the outgoing request.
Declaration
public override ValueTask ApplyAsync(RequestTransformContext context)
Parameters
Type | Name | Description |
---|---|---|
RequestTransformContext | context |
Returns
Type | Description |
---|---|
ValueTask |