AddHttpResponseHeaderAction¶
-
class
oci.waas.models.
AddHttpResponseHeaderAction
(**kwargs)¶ Bases:
oci.waas.models.header_manipulation_action.HeaderManipulationAction
An object that represents the action of replacing or adding a header field. All prior occurrences of the header with the given name are removed and then the header field with specified value is added.
Attributes
ACTION_ADD_HTTP_RESPONSE_HEADER
str(object=’’) -> str ACTION_EXTEND_HTTP_RESPONSE_HEADER
str(object=’’) -> str ACTION_REMOVE_HTTP_RESPONSE_HEADER
str(object=’’) -> str action
[Required] Gets the action of this HeaderManipulationAction. header
[Required] Gets the header of this AddHttpResponseHeaderAction. value
[Required] Gets the value of this AddHttpResponseHeaderAction. Methods
__init__
(**kwargs)Initializes a new AddHttpResponseHeaderAction object with values from keyword arguments. get_subtype
(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
ACTION_ADD_HTTP_RESPONSE_HEADER
= 'ADD_HTTP_RESPONSE_HEADER'¶
-
ACTION_EXTEND_HTTP_RESPONSE_HEADER
= 'EXTEND_HTTP_RESPONSE_HEADER'¶
-
ACTION_REMOVE_HTTP_RESPONSE_HEADER
= 'REMOVE_HTTP_RESPONSE_HEADER'¶
-
__init__
(**kwargs)¶ Initializes a new AddHttpResponseHeaderAction object with values from keyword arguments. The default value of the
action
attribute of this class isADD_HTTP_RESPONSE_HEADER
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - action (str) – The value to assign to the action property of this AddHttpResponseHeaderAction. Allowed values for this property are: “EXTEND_HTTP_RESPONSE_HEADER”, “ADD_HTTP_RESPONSE_HEADER”, “REMOVE_HTTP_RESPONSE_HEADER”
- header (str) – The value to assign to the header property of this AddHttpResponseHeaderAction.
- value (str) – The value to assign to the value property of this AddHttpResponseHeaderAction.
-
action
¶ [Required] Gets the action of this HeaderManipulationAction. Allowed values for this property are: “EXTEND_HTTP_RESPONSE_HEADER”, “ADD_HTTP_RESPONSE_HEADER”, “REMOVE_HTTP_RESPONSE_HEADER”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The action of this HeaderManipulationAction. Return type: str
-
static
get_subtype
(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
header
¶ [Required] Gets the header of this AddHttpResponseHeaderAction. A header field name that conforms to RFC 7230.
Example: example_header_name
Returns: The header of this AddHttpResponseHeaderAction. Return type: str
-
value
¶ [Required] Gets the value of this AddHttpResponseHeaderAction. A header field value that conforms to RFC 7230.
Example: example_value
Returns: The value of this AddHttpResponseHeaderAction. Return type: str
-