Share via


ODataOutputFormatter.GetDefaultBaseAddress(HttpRequest) Method

Definition

Returns a base address to be used in the service root when reading or writing OData uris.

public static Uri GetDefaultBaseAddress (Microsoft.AspNetCore.Http.HttpRequest request);
static member GetDefaultBaseAddress : Microsoft.AspNetCore.Http.HttpRequest -> Uri
Public Shared Function GetDefaultBaseAddress (request As HttpRequest) As Uri

Parameters

request
HttpRequest

The HttpRequest object for the given request.

Returns

Uri

The base address to be used as part of the service root in the OData uri; must terminate with a trailing '/'.

Applies to