ODataInputFormatter.GetDefaultBaseAddress(HttpRequest) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The base address to be used as part of the service root in the OData uri; must terminate with a trailing '/'.