Skip to main content

Name

request_eval — Called prior to sending a generic HTTP request

Synopsis

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

| int **request_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.

Called prior to sending a generic HTTP request.

Note

This hook point is similar to the gcm_request_eval hook but in this case the hook is passed a pointer to the http_session data which contains the http_request. If you change anything at this hook point you must update the HTTP headers.

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 any thread.

See Also

Was this page helpful?