Lines Matching refs:gw

49     gw_plugin_config gw; /* start must match layout of gw_plugin_config */  member
65 gw_handler_ctx gw; member
105 gw_plugin_config * const gw = cpv->v.v; in mod_proxy_merge_config_cpv() local
106 pconf->gw.exts = gw->exts; in mod_proxy_merge_config_cpv()
107 pconf->gw.exts_auth = gw->exts_auth; in mod_proxy_merge_config_cpv()
108 pconf->gw.exts_resp = gw->exts_resp; in mod_proxy_merge_config_cpv()
113 pconf->gw.balance = (int)cpv->v.u; in mod_proxy_merge_config_cpv()
116 pconf->gw.debug = (int)cpv->v.u; in mod_proxy_merge_config_cpv()
119 pconf->gw.ext_mapping = cpv->v.a; in mod_proxy_merge_config_cpv()
310 gw_plugin_config *gw = NULL; in SETDEFAULTS_FUNC() local
314 gw = ck_calloc(1, sizeof(gw_plugin_config)); in SETDEFAULTS_FUNC()
316 gw, 0, cpk[cpv->k_id].k)) { in SETDEFAULTS_FUNC()
317 gw_plugin_config_free(gw); in SETDEFAULTS_FUNC()
323 if (gw->exts_auth && gw->exts_auth->used) { in SETDEFAULTS_FUNC()
327 gw_plugin_config_free(gw); in SETDEFAULTS_FUNC()
330 cpv->v.v = gw; in SETDEFAULTS_FUNC()
357 if (gw && gw->exts) { /*(check after gw_set_defaults_backend())*/ in SETDEFAULTS_FUNC()
358 gw_exts_clear_check_local(gw->exts); in SETDEFAULTS_FUNC()
836 request_st * const r = hctx->gw.r; in proxy_create_env()
839 size_t rsz = (size_t)(r->read_queue.bytes_out - hctx->gw.wb.bytes_in); in proxy_create_env()
841 buffer * const b = chunkqueue_prepend_buffer_open_sz(&hctx->gw.wb, rsz); in proxy_create_env()
862 if (hctx->conf.replace_http_host && !buffer_is_blank(hctx->gw.host->id)) { in proxy_create_env()
863 if (hctx->gw.conf.debug > 1) { in proxy_create_env()
865 "proxy - using \"%s\" as HTTP Host", hctx->gw.host->id->ptr); in proxy_create_env()
868 BUF_PTR_LEN(hctx->gw.host->id)); in proxy_create_env()
901 hctx->gw.stdin_append = proxy_stdin_append; /* stream chunked body */ in proxy_create_env()
1022 hctx->gw.wb_reqlen = buffer_clen(b); in proxy_create_env()
1023 chunkqueue_prepend_buffer_commit(&hctx->gw.wb); in proxy_create_env()
1027 hctx->gw.wb_reqlen += r->reqbody_length; /* total req size */ in proxy_create_env()
1029 hctx->gw.wb_reqlen = -hctx->gw.wb_reqlen; in proxy_create_env()
1030 if (hctx->gw.stdin_append == proxy_stdin_append) in proxy_create_env()
1031 proxy_stdin_append(&hctx->gw); in proxy_create_env()
1033 chunkqueue_append_chunkqueue(&hctx->gw.wb, &r->reqbody_queue); in proxy_create_env()
1043 request_st * const r = hctx->gw.r; in proxy_create_env_connect()
1046 gw_set_transparent(&hctx->gw); in proxy_create_env_connect()
1069 gw_set_transparent(&hctx->gw); in proxy_response_headers()
1124 if (NULL == p->conf.gw.exts) return HANDLER_GO_ON; in mod_proxy_check_extension()
1131 hctx->gw.create_env = proxy_create_env; in mod_proxy_check_extension()
1132 hctx->gw.response = chunk_buffer_acquire(); in mod_proxy_check_extension()
1133 hctx->gw.opts.backend = BACKEND_PROXY; in mod_proxy_check_extension()
1134 hctx->gw.opts.pdata = hctx; in mod_proxy_check_extension()
1135 hctx->gw.opts.headers = proxy_response_headers; in mod_proxy_check_extension()
1160 hctx->gw.create_env = proxy_create_env_connect; in mod_proxy_check_extension()