|
Packit |
90a5c9 |
/* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
Packit |
90a5c9 |
* contributor license agreements. See the NOTICE file distributed with
|
|
Packit |
90a5c9 |
* this work for additional information regarding copyright ownership.
|
|
Packit |
90a5c9 |
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
Packit |
90a5c9 |
* (the "License"); you may not use this file except in compliance with
|
|
Packit |
90a5c9 |
* the License. You may obtain a copy of the License at
|
|
Packit |
90a5c9 |
*
|
|
Packit |
90a5c9 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
Packit |
90a5c9 |
*
|
|
Packit |
90a5c9 |
* Unless required by applicable law or agreed to in writing, software
|
|
Packit |
90a5c9 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
Packit |
90a5c9 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
Packit |
90a5c9 |
* See the License for the specific language governing permissions and
|
|
Packit |
90a5c9 |
* limitations under the License.
|
|
Packit |
90a5c9 |
*/
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
/**
|
|
Packit |
90a5c9 |
* @file cache_socache_common.h
|
|
Packit |
90a5c9 |
* @brief Common Shared Object Cache vars/structs
|
|
Packit |
90a5c9 |
*
|
|
Packit |
90a5c9 |
* @defgroup Cache_cache Cache Functions
|
|
Packit |
90a5c9 |
* @ingroup MOD_SOCACHE_CACHE
|
|
Packit |
90a5c9 |
* @{
|
|
Packit |
90a5c9 |
*/
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#ifndef CACHE_SOCACHE_COMMON_H
|
|
Packit |
90a5c9 |
#define CACHE_SOCACHE_COMMON_H
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#include "apr_time.h"
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#include "cache_common.h"
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#define CACHE_SOCACHE_VARY_FORMAT_VERSION 1
|
|
Packit |
90a5c9 |
#define CACHE_SOCACHE_DISK_FORMAT_VERSION 2
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
typedef struct {
|
|
Packit |
90a5c9 |
/* Indicates the format of the header struct stored on-disk. */
|
|
Packit |
90a5c9 |
apr_uint32_t format;
|
|
Packit |
90a5c9 |
/* The HTTP status code returned for this response. */
|
|
Packit |
90a5c9 |
int status;
|
|
Packit |
90a5c9 |
/* The size of the entity name that follows. */
|
|
Packit |
90a5c9 |
apr_size_t name_len;
|
|
Packit |
90a5c9 |
/* The number of times we've cached this entity. */
|
|
Packit |
90a5c9 |
apr_size_t entity_version;
|
|
Packit |
90a5c9 |
/* Miscellaneous time values. */
|
|
Packit |
90a5c9 |
apr_time_t date;
|
|
Packit |
90a5c9 |
apr_time_t expire;
|
|
Packit |
90a5c9 |
apr_time_t request_time;
|
|
Packit |
90a5c9 |
apr_time_t response_time;
|
|
Packit |
90a5c9 |
/* Does this cached request have a body? */
|
|
Packit |
90a5c9 |
unsigned int header_only:1;
|
|
Packit |
90a5c9 |
/* The parsed cache control header */
|
|
Packit |
90a5c9 |
cache_control_t control;
|
|
Packit |
90a5c9 |
} cache_socache_info_t;
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#endif /* CACHE_SOCACHE_COMMON_H */
|
|
Packit |
90a5c9 |
/** @} */
|