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
destinationPrefixstringThe scheme, host, port, and optional path base for the destination server. e.g. "http://example.com:80/path/prefix"
pathPathStringThe path to append.
queryQueryStringThe query to append
Returns
- Uri