Skip to main content

Name

ec_httpsrv_ctx_get — Gets the per-request closure blobject from a session

Synopsis

#include "modules/listeners/httpsrv.h"

| ec_blobject * **ec_httpsrv_ctx_get** ( | sess); |   |

ec_httpsrv_session * <var class="pdparam">sess</var>;

Description

Note

This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

Gets the per-request closure blobject from a session.

Returns the blobject that was previously associated with the session by a call to ec_httpsrv_ctx_set.

If the blobject is non-NULL, it will have a reference added for you; you must call ec_blobject_delref to release it when you no longer require it.

Parameters

sess

the session to interrogate

Return Values

a blobject, or NULL if no blobject is present.

Was this page helpful?