Show / Hide Table of Contents

Class AddHttpRequestHeaderRule

An object that represents the action of adding a header to a request. This rule applies only to HTTP listeners. NOTES:

  • If a matching header already exists in the request, the system removes all of its occurrences, and then adds the new header.
  • The system does not distinquish between underscore and dash characters in headers. That is, it treats example_header_name and example-header-name as identical. Oracle recommends that you do not rely on underscore or dash characters to uniquely distinguish header names.
Inheritance
object
Rule
AddHttpRequestHeaderRule
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.LoadbalancerService.Models
Assembly: OCI.DotNetSDK.Loadbalancer.dll
Syntax
public class AddHttpRequestHeaderRule : Rule

Properties

Header

Declaration
[Required(ErrorMessage = "Header is required.")]
[JsonProperty(PropertyName = "header")]
public string Header { get; set; }
Property Value
Type Description
string

A header name that conforms to RFC 7230.
Example: example_header_name

Remarks

Required

Value

Declaration
[Required(ErrorMessage = "Value is required.")]
[JsonProperty(PropertyName = "value")]
public string Value { get; set; }
Property Value
Type Description
string

A header value that conforms to RFC 7230. With the following exceptions:

  • value cannot contain $
  • value cannot contain patterns like {variable_name}. They are reserved for future extensions. Currently, such values are invalid.
    Example: example_value
Remarks

Required

In this article
Back to top