MCPcopy Create free account
hub / github.com/apache/httpd / store_headers

Function store_headers

modules/cache/mod_cache_disk.c:944–963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

942}
943
944static apr_status_t store_headers(cache_handle_t *h, request_rec *r, cache_info *info)
945{
946 disk_cache_object_t *dobj = (disk_cache_object_t*) h->cache_obj->vobj;
947
948 memcpy(&h->cache_obj->info, info, sizeof(cache_info));
949
950 if (r->headers_out) {
951 dobj->headers_out = ap_cache_cacheable_headers_out(r);
952 }
953
954 if (r->headers_in) {
955 dobj->headers_in = ap_cache_cacheable_headers_in(r);
956 }
957
958 if (r->header_only && r->status != HTTP_NOT_MODIFIED) {
959 dobj->disk_info.header_only = 1;
960 }
961
962 return APR_SUCCESS;
963}
964
965static apr_status_t write_headers(cache_handle_t *h, request_rec *r)
966{

Callers

nothing calls this directly

Tested by

no test coverage detected