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
patternstringThe pattern used to create the new request path.
binderFactoryTemplateBinderFactoryThe factory used to bind route parameters to the given path pattern.
Methods
ApplyAsync(RequestTransformContext)
public override ValueTask ApplyAsync(RequestTransformContext context)
Parameters
contextRequestTransformContext