Class RequestUtilities
- Namespace
- Yarp.ReverseProxy.Forwarder
- Assembly
- Yarp.ReverseProxy.dll
APIs that can be used when transforming requests.
public static class RequestUtilities
- Inheritance
-
RequestUtilities
- Inherited Members
Methods
MakeDestinationAddress(string, PathString, QueryString)
Appends the given path and query to the destination prefix while avoiding duplicate '/'.
public static Uri MakeDestinationAddress(string destinationPrefix, PathString path, QueryString query)
Parameters
destinationPrefix
stringThe scheme, host, port, and optional path base for the destination server. e.g. "http://example.com:80/path/prefix"
path
PathStringThe path to append.
query
QueryStringThe query to append
Returns
- Uri