Blame modules/cache/cache_common.h

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_common.h
Packit 90a5c9
 * @brief Common Cache structs
Packit 90a5c9
 *
Packit 90a5c9
 * @defgroup Cache_cache  Cache Functions
Packit 90a5c9
 * @ingroup  MOD_CACHE
Packit 90a5c9
 * @{
Packit 90a5c9
 */
Packit 90a5c9
Packit 90a5c9
#ifndef CACHE_COMMON_H
Packit 90a5c9
#define CACHE_COMMON_H
Packit 90a5c9
Packit 90a5c9
/* a cache control header breakdown */
Packit 90a5c9
typedef struct cache_control {
Packit 90a5c9
    unsigned int parsed:1;
Packit 90a5c9
    unsigned int cache_control:1;
Packit 90a5c9
    unsigned int pragma:1;
Packit 90a5c9
    unsigned int no_cache:1;
Packit 90a5c9
    unsigned int no_cache_header:1; /* no cache by header match */
Packit 90a5c9
    unsigned int no_store:1;
Packit 90a5c9
    unsigned int max_age:1;
Packit 90a5c9
    unsigned int max_stale:1;
Packit 90a5c9
    unsigned int min_fresh:1;
Packit 90a5c9
    unsigned int no_transform:1;
Packit 90a5c9
    unsigned int only_if_cached:1;
Packit 90a5c9
    unsigned int public:1;
Packit 90a5c9
    unsigned int private:1;
Packit 90a5c9
    unsigned int private_header:1; /* private by header match */
Packit 90a5c9
    unsigned int must_revalidate:1;
Packit 90a5c9
    unsigned int proxy_revalidate:1;
Packit 90a5c9
    unsigned int s_maxage:1;
Packit 90a5c9
    unsigned int invalidated:1; /* has this entity been invalidated? */
Packit 90a5c9
    apr_int64_t max_age_value; /* if positive, then set */
Packit 90a5c9
    apr_int64_t max_stale_value; /* if positive, then set */
Packit 90a5c9
    apr_int64_t min_fresh_value; /* if positive, then set */
Packit 90a5c9
    apr_int64_t s_maxage_value; /* if positive, then set */
Packit 90a5c9
} cache_control_t;
Packit 90a5c9
Packit 90a5c9
#endif /* CACHE_COMMON_H */
Packit 90a5c9
/** @} */