Share via


UriHelper.GetEncodedUrl(HttpRequest) Method

Definition

Returns the combined components of the request URL in a fully escaped form suitable for use in HTTP headers and other HTTP operations.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ GetEncodedUrl(Microsoft::AspNetCore::Http::HttpRequest ^ request);
public static string GetEncodedUrl (this Microsoft.AspNetCore.Http.HttpRequest request);
static member GetEncodedUrl : Microsoft.AspNetCore.Http.HttpRequest -> string
<Extension()>
Public Function GetEncodedUrl (request As HttpRequest) As String

Parameters

request
HttpRequest

The request to assemble the uri pieces from.

Returns

The encoded string version of the URL from request.

Applies to