Class PathRouteValuesTransform
- Namespace
- Yarp.ReverseProxy.Transforms
- Assembly
- Yarp.ReverseProxy.dll
Generates a new request path by plugging matched route parameters into the given pattern.
public class PathRouteValuesTransform : RequestTransform
- Inheritance
-
PathRouteValuesTransform
- Inherited Members
Constructors
PathRouteValuesTransform(string, TemplateBinderFactory)
Creates a new transform.
public PathRouteValuesTransform(string pattern, TemplateBinderFactory binderFactory)
Parameters
pattern
stringThe pattern used to create the new request path.
binderFactory
TemplateBinderFactoryThe factory used to bind route parameters to the given path pattern.
Methods
ApplyAsync(RequestTransformContext)
public override ValueTask ApplyAsync(RequestTransformContext context)
Parameters
context
RequestTransformContext