Processes a request access check and returns a HTTP result to be rendered by the agent.
The render status is returned in the render_sts argument.
#include "am_web.h" AM_WEB_EXPORT am_web_result_t am_web_process_request(am_web_request_params_t *req_params, am_web_request_func_t *req_func, am_status_t *render_sts, void* agent_config);
This function takes the following parameters:
Pointer to a am_web_request_params_t data type.
Pointer to a am_web_request_func_t data type.
Pointer to one of the values of the am_status_t enumeration as defined in the <am_types.h> header file.
An agent configuration instance returned by am_web_get_agent_configuration(). This parameter should not be NULL.
One of the following values of the am_web_result_t enumeration as defined:
#include "am_web.h" typedef enum { AM_WEB_RESULT_OK, /* access check was OK */ AM_WEB_RESULT_OK_DONE, /* OK and handled (for ex. notification) */ AM_WEB_RESULT_FORBIDDEN, /* access forbidden */ AM_WEB_RESULT_REDIRECT, /* redirected */ AM_WEB_RESULT_ERROR /* internal error */ } am_web_result_t;