#### [Abblix\.Oidc\.Server\.AspNetCore](https://www.abblix.com/en/docs/api/abblix-oidc-server-aspnetcore 'index')
### [Abblix\.Oidc\.Server\.AspNetCore](https://www.abblix.com/en/docs/api/abblix-oidc-server-aspnetcore/Abblix.Oidc.Server.AspNetCore 'Abblix\.Oidc\.Server\.AspNetCore')

## HttpRequestExtensions Class

Reads URL components from an [Microsoft\.AspNetCore\.Http\.HttpRequest](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.httprequest 'Microsoft\.AspNetCore\.Http\.HttpRequest')\. Touches only [Microsoft\.AspNetCore\.Http\.HttpRequest](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.httprequest 'Microsoft\.AspNetCore\.Http\.HttpRequest') \(no MVC, no Minimal
API types\), so it is shared by both transport adapters\.

```csharp
public static class HttpRequestExtensions
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → HttpRequestExtensions
### Methods

## HttpRequestExtensions\.GetAppUrl\(this HttpRequest\) Method {#Abblix.Oidc.Server.AspNetCore.HttpRequestExtensions.GetAppUrl(thisMicrosoft.AspNetCore.Http.HttpRequest)}

Gets the application's base URL \(scheme, host, and base path\) from the request\.

```csharp
public static string GetAppUrl(this Microsoft.AspNetCore.Http.HttpRequest request);
```
#### Parameters

###### `request` [Microsoft\.AspNetCore\.Http\.HttpRequest](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.httprequest 'Microsoft\.AspNetCore\.Http\.HttpRequest') {#Abblix.Oidc.Server.AspNetCore.HttpRequestExtensions.GetAppUrl(thisMicrosoft.AspNetCore.Http.HttpRequest).request}

#### Returns
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')

## HttpRequestExtensions\.GetBaseUrl\(this HttpRequest\) Method {#Abblix.Oidc.Server.AspNetCore.HttpRequestExtensions.GetBaseUrl(thisMicrosoft.AspNetCore.Http.HttpRequest)}

Gets the base URL of the request \(scheme, host, and request path\)\.

```csharp
public static string GetBaseUrl(this Microsoft.AspNetCore.Http.HttpRequest request);
```
#### Parameters

###### `request` [Microsoft\.AspNetCore\.Http\.HttpRequest](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.httprequest 'Microsoft\.AspNetCore\.Http\.HttpRequest') {#Abblix.Oidc.Server.AspNetCore.HttpRequestExtensions.GetBaseUrl(thisMicrosoft.AspNetCore.Http.HttpRequest).request}

#### Returns
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')
