UserAgentSentinelOptions Constructor
Definition
- Namespace
- Cuemon.AspNetCore.Http.Headers
- Assemblies
- Cuemon.AspNetCore.dll
UserAgentSentinelOptions()
Initializes a new instance of the UserAgentSentinelOptions class.
public UserAgentSentinelOptions()
Remarks
The following table shows the initial property values for an instance of UserAgentSentinelOptions.
| Property | Initial Value |
|---|---|
| AllowedUserAgents | new List{string}(); |
| BadRequestMessage | The requirements of the request was not met. |
| ForbiddenMessage | The HTTP User-Agent specified was rejected. |
| RequireUserAgentHeader | false |
| ValidateUserAgentHeader | false |
| ResponseHandler | A HttpResponseMessage initialized to either a HTTP status code 400 or 403 and a body of either BadRequestMessage or ForbiddenMessage. |
| UseGenericResponse | false |