Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace 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 {@code example_header_name} and {@code example-header-name} as identical. Oracle recommends that you do not rely on underscore or dash characters to uniquely distinguish header names.

Properties

Const action

action: string = "ADD_HTTP_REQUEST_HEADER"

header

header: string

A header name that conforms to RFC 7230.

Example: {@code example_header_name}

value

value: string

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

  • value cannot contain {@code $}
  • value cannot contain patterns like {@code {variable_name}}. They are reserved for future extensions. Currently, such values are invalid.

    Example: {@code example_value}

Methods

getDeserializedJsonObj

  • getDeserializedJsonObj(obj: Rule): object

getJsonObj

  • getJsonObj(obj: Rule): object