Skip to main content

Name

ec_httpsrv_service_ctx_get — Returns the closure parameter that was registered with the handler

Synopsis

#include "modules/listeners/httpsrv.h"

| ec_blobject * **ec_httpsrv_service_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.

Returns the closure parameter that was registered with the handler.

When called from inside a handler function, returns the closure blobject that was registered with the handler by ec_httpsrv_register.

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

Parameters

sess

the session to interrogate

Return Values

a blobject

Was this page helpful?