Class RequestUtilities
APIs that can be used when transforming requests.
Inheritance
System.Object
RequestUtilities
Namespace: Yarp.ReverseProxy.Forwarder
Assembly: Yarp.ReverseProxy.dll
Syntax
public static class RequestUtilities : object
Methods
| Improve this Doc View SourceMakeDestinationAddress(String, PathString, QueryString)
Appends the given path and query to the destination prefix while avoiding duplicate '/'.
Declaration
public static Uri MakeDestinationAddress(string destinationPrefix, PathString path, QueryString query)
Parameters
Type | Name | Description |
---|---|---|
System.String | destinationPrefix | The scheme, host, port, and optional path base for the destination server. e.g. "http://example.com:80/path/prefix" |
PathString | path | The path to append. |
QueryString | query | The query to append |
Returns
Type | Description |
---|---|
Uri |