Skip to main content

Name

response_eval — The response phase in generic HTTP delivery

Synopsis

#include "modules/delivery/http/httpclnt.h"

| int **response_eval** ( | closure, |   | |   | sess); |   |

void * <var class="pdparam">closure</var>; http_session * <var class="pdparam">sess</var>;

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.

Parameters

closure

The closure function.

sess

The http_session. For more information about this struct see “http_session”.

Return Values

This hook returns zero or 1. If non-zero, no further hook providers are called.

Threading

This hook will be called in the Scheduler thread.

See Also

Was this page helpful?