Class PathStringTransform
Modifies the proxy request Path with the given value.
Inherited Members
Namespace: Yarp.ReverseProxy.Transforms
Assembly: Yarp.ReverseProxy.dll
Syntax
public class PathStringTransform : RequestTransform
Constructors
| Improve this Doc View SourcePathStringTransform(PathStringTransform.PathTransformMode, PathString)
Creates a new transform.
Declaration
public PathStringTransform(PathStringTransform.PathTransformMode mode, PathString value)
Parameters
Type | Name | Description |
---|---|---|
PathStringTransform.PathTransformMode | mode | A PathStringTransform.PathTransformMode indicating how the given value should update the existing path. |
PathString | value | The path value used to update the existing value. |
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 |