ExtendHttpResponseHeaderAction¶
- class oci.waas.models.ExtendHttpResponseHeaderAction(**kwargs)¶
Bases:
HeaderManipulationActionAn object that represents the action of adding a header field to a response. If the header with specified value already exists, nothing will be added. If the header exists with different value, additional header name:value pair will be added. Comma separated header values are not considered individually (instead as a single value) when adding a new header field.
Attributes:
A constant which can be used with the action property of a HeaderManipulationAction.
A constant which can be used with the action property of a HeaderManipulationAction.
A constant which can be used with the action property of a HeaderManipulationAction.
[Required] Gets the action of this HeaderManipulationAction.
[Required] Gets the header of this ExtendHttpResponseHeaderAction.
[Required] Gets the value of this ExtendHttpResponseHeaderAction.
Methods:
__init__(**kwargs)Initializes a new ExtendHttpResponseHeaderAction 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'¶
A constant which can be used with the action property of a HeaderManipulationAction. This constant has a value of “ADD_HTTP_RESPONSE_HEADER”
- ACTION_EXTEND_HTTP_RESPONSE_HEADER = 'EXTEND_HTTP_RESPONSE_HEADER'¶
A constant which can be used with the action property of a HeaderManipulationAction. This constant has a value of “EXTEND_HTTP_RESPONSE_HEADER”
- ACTION_REMOVE_HTTP_RESPONSE_HEADER = 'REMOVE_HTTP_RESPONSE_HEADER'¶
A constant which can be used with the action property of a HeaderManipulationAction. This constant has a value of “REMOVE_HTTP_RESPONSE_HEADER”
- __init__(**kwargs)¶
Initializes a new ExtendHttpResponseHeaderAction object with values from keyword arguments. The default value of the
actionattribute of this class isEXTEND_HTTP_RESPONSE_HEADERand 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 ExtendHttpResponseHeaderAction. 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 ExtendHttpResponseHeaderAction.
value (str) – The value to assign to the value property of this ExtendHttpResponseHeaderAction.
- property 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.
- property header¶
[Required] Gets the header of this ExtendHttpResponseHeaderAction. A header field name that conforms to RFC 7230.
Example: example_header_name
- Returns
The header of this ExtendHttpResponseHeaderAction.
- Return type
str
- property value¶
[Required] Gets the value of this ExtendHttpResponseHeaderAction. A header field value that conforms to RFC 7230.
Example: example_value
- Returns
The value of this ExtendHttpResponseHeaderAction.
- Return type
str