UriHelper.GetDisplayUrl(HttpRequest) Method

Definition

Returns the combined components of the request URL in a fully un-escaped form (except for the QueryString) suitable only for display. This format should not be used in HTTP headers or other HTTP operations.

C#
public static string GetDisplayUrl (this Microsoft.AspNetCore.Http.HttpRequest request);

Parameters

request
HttpRequest

The request to assemble the uri pieces from.

Returns

The combined components of the request URL in a fully un-escaped form (except for the QueryString) suitable only for display.

Applies to

Produkt Verzie
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0