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

## HttpGetOrPostAttribute Class

Specifies that an action supports both HTTP GET and POST methods\.

```csharp
public class HttpGetOrPostAttribute : Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → [System\.Attribute](https://learn.microsoft.com/en-us/dotnet/api/system.attribute 'System\.Attribute') → [Microsoft\.AspNetCore\.Mvc\.Routing\.HttpMethodAttribute](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.routing.httpmethodattribute 'Microsoft\.AspNetCore\.Mvc\.Routing\.HttpMethodAttribute') → HttpGetOrPostAttribute

### Remarks
This attribute can be applied to an action method to indicate that it should
respond to HTTP GET and POST requests\. When applied to an action method, it specifies
that the method handles requests made with these two HTTP methods\. It can be used to
support scenarios where a resource can be fetched \(GET\) or submitted \(POST\) to the same URL\.
### Constructors

## HttpGetOrPostAttribute\(\) Constructor {#Abblix.Oidc.Server.Mvc.Attributes.HttpGetOrPostAttribute.HttpGetOrPostAttribute()}

Initializes a new instance of the [HttpGetOrPostAttribute](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Attributes.HttpGetOrPostAttribute 'Abblix\.Oidc\.Server\.Mvc\.Attributes\.HttpGetOrPostAttribute') class without specifying a route template\.

```csharp
public HttpGetOrPostAttribute();
```

## HttpGetOrPostAttribute\(string\) Constructor {#Abblix.Oidc.Server.Mvc.Attributes.HttpGetOrPostAttribute.HttpGetOrPostAttribute(string)}

Initializes a new instance of the [HttpGetOrPostAttribute](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Attributes.HttpGetOrPostAttribute 'Abblix\.Oidc\.Server\.Mvc\.Attributes\.HttpGetOrPostAttribute') class with the specified route template\.

```csharp
public HttpGetOrPostAttribute(string template);
```
#### Parameters

###### `template` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Oidc.Server.Mvc.Attributes.HttpGetOrPostAttribute.HttpGetOrPostAttribute(string).template}

The route template\. The template may define path segments, parameters, etc\., as per routing conventions\.
