Interface IRequestAccessor
Provides access to HTTP request values.
Namespace: Umbraco.Cms.Core.Web
Assembly: Umbraco.Core.dll
Syntax
public interface IRequestAccessor
Methods
View SourceGetQueryStringValue(string)
Gets the query string value for the specified name.
Declaration
string? GetQueryStringValue(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the query string parameter. |
Returns
| Type | Description |
|---|---|
| string | The query string value if found; otherwise, |
GetRequestUrl()
Gets the current request URL.
Declaration
Uri? GetRequestUrl()
Returns
| Type | Description |
|---|---|
| Uri | The current request System.Uri if available; otherwise, |
GetRequestValue(string)
Gets the request value for the specified name from request, form, or query string.
Declaration
string? GetRequestValue(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the value to retrieve. |
Returns
| Type | Description |
|---|---|
| string | The request value if found; otherwise, |