Processes attr_response_map from a am_policy_result_t data type and performs the set action.
This function replaces am_web_do_result_attr_map_set() which is deprecated. It needs to be explicitly declare to use it. See <am_web.h> for more information.
#include "am_web.h" AM_WEB_EXPORT am_status_t am_web_result_attr_map_set(am_policy_result_t *result, am_web_result_set_header_func_t setHeaderFunc, am_web_result_set_header_attr_in_response_func_t setCookieRespFunc, am_web_result_set_header_attr_in_request_func_t setCookieReqFunc, am_web_get_cookie_sync_func_t getCookieSyncFunc, void **args, void* agent_config);
This function takes the following parameters:
Pointer to the am_policy_result_t.
See am_policy_result_t for more information.
Pointer to the am_web_result_set_header_func_t.
Pointer to the am_web_result_set_header_attr_in_response_func_t.
Pointer to the am_web_result_set_header_attr_in_request_func_t.
Pointer to the am_web_get_cookie_sync_func_t.
Pointer to a pointer to agent defined parameters.
An agent configuration instance returned by am_web_get_agent_configuration(). This parameter should not be NULL.
This function returns one of the following values of the am_status_t enumeration (defined in the <am_types.h> header file):
If the call was successful.
If any error occurs, the type of error indicated by the status value.
The value returned should be freed using am_web_free().