Lines Matching refs:hctx
37 static void handler_ctx_free(handler_ctx *hctx) { in handler_ctx_free() argument
38 free(hctx); in handler_ctx_free()
185 handler_ctx *hctx = r->plugin_ctx[p->id]; in URIHANDLER_FUNC() local
186 if (!hctx) in URIHANDLER_FUNC()
187 r->plugin_ctx[p->id] = hctx = handler_ctx_init(); in URIHANDLER_FUNC()
188 else if (hctx->handled) in URIHANDLER_FUNC()
190 hctx->handled = 1; in URIHANDLER_FUNC()
192 mod_setenv_patch_config(r, p, &hctx->conf); in URIHANDLER_FUNC()
194 const array * const aa = hctx->conf.request_header; in URIHANDLER_FUNC()
195 const array * const as = hctx->conf.set_request_header; in URIHANDLER_FUNC()
220 handler_ctx *hctx = r->plugin_ctx[p->id]; in REQUEST_FUNC() local
221 if (NULL == hctx) return HANDLER_GO_ON; in REQUEST_FUNC()
222 if (hctx->handled > 1) return HANDLER_GO_ON; in REQUEST_FUNC()
223 hctx->handled = 2; in REQUEST_FUNC()
225 const array * const aa = hctx->conf.environment; in REQUEST_FUNC()
226 const array * const as = hctx->conf.set_environment; in REQUEST_FUNC()
229 for (uint32_t k = 0; k < hctx->conf.environment->used; ++k) { in REQUEST_FUNC()
249 handler_ctx *hctx = r->plugin_ctx[p->id]; in REQUEST_FUNC() local
250 if (NULL == hctx) return HANDLER_GO_ON; in REQUEST_FUNC()
252 const array * const aa = hctx->conf.response_header; in REQUEST_FUNC()
253 const array * const as = hctx->conf.set_response_header; in REQUEST_FUNC()
277 void ** const hctx = r->plugin_ctx+((plugin_data_base *)p_d)->id; in REQUEST_FUNC() local
278 if (*hctx) { handler_ctx_free(*hctx); *hctx = NULL; } in REQUEST_FUNC()