Name
response_eval — The response phase in generic HTTP delivery
Synopsis
#include "modules/delivery/http/httpclnt.h"
| int **response_eval** (
| closure, | |
| | sess)
; | |
Description
**Configuration Change. ** This hook point is available as of Momentum version 3.5.5.
This hook is called at the response phase in generic HTTP delivery. If an HTTP 200 response was received, then the HTTP response body contains a JSON object that holds the response.
Note
This hook should not modify the response and would typically use it to process feedback concerning token management but this hook may also be used for other custom features.
- closure
-
The closure function.
- sess
-
The http_session. For more information about this struct see “http_session”.
This hook returns zero or 1. If non-zero, no further hook providers are called.
This hook will be called in the Scheduler
thread.