<PackageReference Include="Relativity.Server.Import.SDK" Version="2.9.2" />

UrlHelper

static class UrlHelper
Defines static methods to perform common URL operations.
public static string Combine(string absoluteUrl, string relativePath)

Combines the absolute URL and relative URL parts into a single URL. Leading and trailing slashes are automatically added.

public static string GetBaseUrl(string url)

Gets the base URL including the scheme, host, and possible port number from the supplied URL.

public static string GetBaseUrlAndCombine(string baseUrl, string relativePath)

Combines the base URL and relative URL parts into a single URL. Leading and trailing slashes are automatically added.