Show / Hide Table of Contents

Class ExtendHttpRequestHeaderValueRule

An object that represents the action of modifying a request header value. This rule applies only to HTTP listeners.
This rule adds a prefix, a suffix, or both to the header value.
NOTES:

  • This rule requires a value for a prefix, suffix, or both.
  • The system does not support this rule for headers with multiple values.
  • 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. If two such headers appear in a request, the system applies the action to the first header it finds. The affected header cannot be determined in advance. Oracle recommends that you do not rely on underscore or dash characters to uniquely distinguish header names.
Inheritance
object
Rule
ExtendHttpRequestHeaderValueRule
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 ExtendHttpRequestHeaderValueRule : 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

Prefix

Declaration
[JsonProperty(PropertyName = "prefix")]
public string Prefix { get; set; }
Property Value
Type Description
string

A string to prepend to the header value. The resulting header value must conform 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_prefix_value

Suffix

Declaration
[JsonProperty(PropertyName = "suffix")]
public string Suffix { get; set; }
Property Value
Type Description
string

A string to append to the header value. The resulting header value must conform 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_suffix_value
In this article
Back to top