Lines Matching defs:ctx

139     struct filter_ctx *ctx;
141 if (f->ctx == NULL)
144 ctx = f->ctx;
146 switch (ctx->body_status) {
150 if (ctx->body_status != APR_INCOMPLETE)
158 *t = ctx->body;
159 return ctx->body_status;
165 struct filter_ctx *ctx;
170 if (f->ctx == NULL)
173 ctx = f->ctx;
175 switch (ctx->body_status) {
179 val = apr_table_get(ctx->body, name);
188 if (ctx->body_status != APR_INCOMPLETE)
195 val = apr_table_get(ctx->body, name);
203 if (ctx->find_param == NULL)
204 ctx->find_param = apreq_hook_make(handle->pool,
207 h = ctx->find_param;
208 h->next = ctx->parser->hook;
209 h->ctx = hook_ctx;
210 ctx->parser->hook = h;
213 hook_ctx->prev = ctx->parser->hook;
219 } while (ctx->body_status == APR_INCOMPLETE);
221 ctx->parser->hook = h->next;
227 if (ctx->body == NULL)
230 val = apr_table_get(ctx->body, name);
246 struct filter_ctx *ctx = f->ctx;
248 if (ctx == NULL) {
252 *parser = ctx->parser;
261 struct filter_ctx *ctx;
263 if (f->ctx == NULL)
266 ctx = f->ctx;
268 if (ctx->parser == NULL) {
269 ctx->parser = parser;
283 struct filter_ctx *ctx;
285 if (f->ctx == NULL)
288 ctx = f->ctx;
290 if (ctx->parser != NULL) {
291 return apreq_parser_add_hook(ctx->parser, hook);
293 else if (ctx->hook_queue != NULL) {
294 apreq_hook_t *h = ctx->hook_queue;
300 ctx->hook_queue = hook;
311 struct filter_ctx *ctx;
313 if (f->ctx == NULL)
316 ctx = f->ctx;
318 if (ctx->body_status == APR_EINIT || ctx->brigade_limit > bytes) {
319 ctx->brigade_limit = bytes;
331 struct filter_ctx *ctx;
333 if (f->ctx == NULL)
336 ctx = f->ctx;
337 *bytes = ctx->brigade_limit;
346 struct filter_ctx *ctx;
348 if (f->ctx == NULL)
351 ctx = f->ctx;
353 if (ctx->read_limit > bytes && ctx->bytes_read < bytes) {
354 ctx->read_limit = bytes;
366 struct filter_ctx *ctx;
368 if (f->ctx == NULL)
371 ctx = f->ctx;
372 *bytes = ctx->read_limit;
381 struct filter_ctx *ctx;
383 if (f->ctx == NULL)
386 ctx = f->ctx;
388 if (ctx->temp_dir == NULL && ctx->bytes_read == 0) {
390 ctx->temp_dir = apr_pstrdup(handle->pool, path);
402 struct filter_ctx *ctx;
404 if (f->ctx == NULL)
407 ctx = f->ctx;
408 *path = ctx->parser ? ctx->parser->temp_dir : ctx->temp_dir;