Show / Hide Table of Contents

Class HeaderValidationRequestPolicy

Validate the HTTP headers on the incoming API requests on a specific route.

Inheritance
object
HeaderValidationRequestPolicy
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.ApigatewayService.Models
Assembly: OCI.DotNetSDK.Apigateway.dll
Syntax
public class HeaderValidationRequestPolicy

Properties

Headers

Declaration
[JsonProperty(PropertyName = "headers")]
public List<HeaderValidationItem> Headers { get; set; }
Property Value
Type Description
List<HeaderValidationItem>

ValidationMode

Declaration
[JsonProperty(PropertyName = "validationMode")]
[JsonConverter(typeof(ResponseEnumConverter))]
public HeaderValidationRequestPolicy.ValidationModeEnum? ValidationMode { get; set; }
Property Value
Type Description
HeaderValidationRequestPolicy.ValidationModeEnum?

Validation behavior mode.
In ENFORCING mode, upon a validation failure, the request will be rejected with a 4xx response and not sent to the backend.
In PERMISSIVE mode, the result of the validation will be exposed as metrics while the request will follow the normal path.
DISABLED type turns the validation off.

In this article
Back to top