Class AddHttpResponseHeaderRule
An object that represents the action of adding a header to a response.
This rule applies only to HTTP listeners.
NOTES:
- If a matching header already exists in the response, 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
andexample-header-name
as identical. Oracle recommends that you do not rely on underscore or dash characters to uniquely distinguish header names.
Inherited Members
Namespace: Oci.LoadbalancerService.Models
Assembly: OCI.DotNetSDK.Loadbalancer.dll
Syntax
public class AddHttpResponseHeaderRule : 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.
|
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:
|
Remarks
Required