Show / Hide Table of Contents

Class RequestUtilities

APIs that can be used when transforming requests.

Inheritance
Object
RequestUtilities
Namespace: Yarp.ReverseProxy.Forwarder
Assembly: Yarp.ReverseProxy.dll
Syntax
public static class RequestUtilities : object

Methods

| Improve this Doc View Source

MakeDestinationAddress(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
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
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX