Lines Matching defs:in
5 * (the "License"); you may not use this file except in compliance with
10 * Unless required by applicable law or agreed to in writing, software
69 * By default, the cache handler runs in the quick handler, bypassing
78 * the placement of the cache in the filter chain. This option comes at
224 * request rec in the filter context, as the request that
295 /* We are in the quick handler hook, which means that no output
316 * first in the chain. This make sense because we want to restore things
317 * in the same manner as we saved them.
523 * filter will remain in place.
545 * request rec in the filter context, as the request that
599 * lie *after* the original location of the CACHE filter will remain in
612 * first in the chain. This make sense because we want to restore things
613 * in the same manner as we saved them.
641 static apr_status_t cache_out_filter(ap_filter_t *f, apr_bucket_brigade *in)
652 return ap_pass_brigade(f->next, in);
659 while (!APR_BRIGADE_EMPTY(in)) {
660 apr_bucket *e = APR_BRIGADE_FIRST(in);
675 /* recall_headers() was called in cache_select() */
677 APR_BRIGADE_PREPEND(in, bb);
684 return ap_pass_brigade(f->next, in);
698 * loop around to try and cache some more until the in brigade is
702 static int cache_save_store(ap_filter_t *f, apr_bucket_brigade *in,
708 /* pass the brigade in into the cache provider, which is then
710 * to pass up the filter stack. repeat until in is empty, or
713 while (APR_SUCCESS == rv && !APR_BRIGADE_EMPTY(in)) {
715 rv = cache->provider->store_body(cache->handle, f->r, in, cache->out);
725 APR_BRIGADE_PREPEND(in, cache->out);
726 return ap_pass_brigade(f->next, in);
745 if (APR_BRIGADE_EMPTY(in)) {
752 /* oops, no data out, but not all data read in either, be
764 return ap_pass_brigade(f->next, in);
809 static apr_status_t cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in)
838 return ap_pass_brigade(f->next, in);
860 return cache_save_store(f, in, conf, cache);
864 * Setup Data in Cache
926 return ap_pass_brigade(f, in);
974 * the original headers in the original cached request.
1022 * codes 302 and 307) MUST NOT be returned in a reply to a
1046 /* if a Expires header is in the past, don't cache it */
1101 * if authorisation is included in the request, we don't cache,
1161 * Enforce RFC2616 Section 10.3.5, just in case. We caught any
1239 return ap_pass_brigade(f->next, in);
1264 for (e = APR_BRIGADE_FIRST(in);
1265 e != APR_BRIGADE_SENTINEL(in);
1293 * new entity and store the response in it.
1295 * entity in the system which needs to be replaced by new
1326 rv = cache_create_entity(cache, r, size, in);
1340 return ap_pass_brigade(f->next, in);
1393 /* if it's in the future, then replace by date */
1396 r, APLOGNO(00771) "cache: Last modified is in the future, "
1430 /* if lastmod == date then you get 0*conf->factor which results in
1454 * to be in the 304 response. Therefore, we need to combine the
1458 * However, before doing that, we need to first merge in
1461 * here we want to keep the original headers in r->headers_out and
1466 /* Merge in our cached headers. However, keep any updated values. */
1483 * If so, we can now decide what to serve to the client. This is done in
1492 /* Load in the saved status and clear the status line. */
1534 * unwritable cache. Rather than leaving the entity in the cache
1583 return ap_pass_brigade(f->next, in);
1590 return cache_save_store(f, in, conf, cache);
1597 * This filter gets added in the quick handler every time the CACHE_SAVE filter
1611 * Therefore, if this filter is left in, it must mean we need to toss any
1615 apr_bucket_brigade *in)
1632 return ap_pass_brigade(f->next, in);
1640 return ap_pass_brigade(f->next, in);
1647 * This filter gets added in the quick handler should a PUT, POST or DELETE
1660 apr_bucket_brigade *in)
1688 "cache: Invalidating all cached entities in response to '%s' request for %s",
1704 return ap_pass_brigade(f->next, in);
1715 * When the filter chain is set up in the non-quick version of the URL handler,
1724 static apr_status_t cache_filter(ap_filter_t *f, apr_bucket_brigade *in)
1735 "cache: CACHE filter was added in quick handler mode and "
1748 return ap_pass_brigade(f->next, in);
1753 * environment, and if configured, to headers in the response.
1828 * be discarded in the process, and replaced with the cached response.
2007 /* array of headers that should not be stored in cache */
2013 /* by default, run in the quick handler */
2174 /* Only add header if no "None" has been found in header list
2203 * Only add identifier if no "None" has been found in identifier
2242 return "When in a Location, CacheEnable must specify a path or an URL below "
2295 return "CacheDisable must be followed by the word 'on' when in a Location.";
2531 "The maximum time in seconds to cache a document"),
2533 "The minimum time in seconds to cache a document"),
2535 "The default time in seconds to cache a document"),
2538 "Run the cache in the quick handler, default on"),
2547 "Ignore expiration dates when populating cache, resulting in "