PEM::Policy::ModifyHTTPHeaderOperationType

Introduced : BIG-IP_v11.5.0
Specifies the type of operation used to modify an HTTP request header when the action is applied to traffic that matches the policy rule.

Members

Member

Value

Description

MODIFY_HTTP_HEADER_OPERATION_TYPE_UNKNOWN

0

The type is unknown (or is unsupported by iControl).

MODIFY_HTTP_HEADER_OPERATION_TYPE_NONE

1

The operation type is none. Specifies that this feature is disabled and all related field settings associated with this feature are ignored. It is the default value.

MODIFY_HTTP_HEADER_OPERATION_TYPE_INSERT

2

The operation type is insert. Inserts an HTTP header to an HTTP request. The HTTP header name field cannot be empty when this option is selected as it is used to define the HTTP header name to insert into an HTTP request. The HTTP header value-content field, however, is not required to be defined.

MODIFY_HTTP_HEADER_OPERATION_TYPE_REMOVE

3

The operation type is remove. Removes an HTTP header from an HTTP request. The HTTP header name field cannot be empty when this option is selected as it is used to identify the HTTP header to remove. The HTTP header value-content field, however, must be empty when this option is selected as it is NOT used as a qualifier. If an HTTP request contains multiple HTTP headers that share the same header name but have different header values, the remove option will remove all headers that share the same name, regardless of the value-content.


See Also

Warning

The links to the sample code below are remnants of the old DevCentral wiki and will result in a 404 error. For best results, please copy the link text and search the codeshare directly on DevCentral.

Sample Code


The BIG-IP API Reference documentation contains community-contributed content. F5 does not monitor or control community code contributions. We make no guarantees or warranties regarding the available code, and it may contain errors, defects, bugs, inaccuracies, or security vulnerabilities. Your access to and use of any code available in the BIG-IP API reference guides is solely at your own risk.