Class SetHeaderPolicyItem
Set will add a new header if it was not in the original request. If the header already exists on the request, you can choose to override, append, or skip it.
Inherited Members
Namespace: Oci.ApigatewayService.Models
Assembly: OCI.DotNetSDK.Apigateway.dll
Syntax
public class SetHeaderPolicyItem
Properties
IfExists
Declaration
[JsonProperty(PropertyName = "ifExists")]
[JsonConverter(typeof(ResponseEnumConverter))]
public SetHeaderPolicyItem.IfExistsEnum? IfExists { get; set; }
Property Value
Type | Description |
---|---|
SetHeaderPolicyItem.IfExistsEnum? | If a header with the same name already exists in the request, OVERWRITE will overwrite the value, APPEND will append to the existing value, or SKIP will keep the existing value. |
Name
Declaration
[Required(ErrorMessage = "Name is required.")]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | The case-insensitive name of the header. This name must be unique across transformation policies. |
Remarks
Required
Values
Declaration
[Required(ErrorMessage = "Values is required.")]
[JsonProperty(PropertyName = "values")]
public List<string> Values { get; set; }
Property Value
Type | Description |
---|---|
List<string> | A list of new values. Each value can be a constant or may include one or more expressions enclosed within ${} delimiters. |
Remarks
Required