http_core.h revision e520939be8c3cb1b685e3248fff701d447bdfc86
7caa86ac4d19f65e396d759bfb02b96646fc09ebLennart Poettering/* ====================================================================
7caa86ac4d19f65e396d759bfb02b96646fc09ebLennart Poettering * The Apache Software License, Version 1.1
7caa86ac4d19f65e396d759bfb02b96646fc09ebLennart Poettering * Copyright (c) 2000-2002 The Apache Software Foundation. All rights
7caa86ac4d19f65e396d759bfb02b96646fc09ebLennart Poettering * Redistribution and use in source and binary forms, with or without
7caa86ac4d19f65e396d759bfb02b96646fc09ebLennart Poettering * modification, are permitted provided that the following conditions
7caa86ac4d19f65e396d759bfb02b96646fc09ebLennart Poettering * 1. Redistributions of source code must retain the above copyright
7caa86ac4d19f65e396d759bfb02b96646fc09ebLennart Poettering * notice, this list of conditions and the following disclaimer.
7caa86ac4d19f65e396d759bfb02b96646fc09ebLennart Poettering * 2. Redistributions in binary form must reproduce the above copyright
7caa86ac4d19f65e396d759bfb02b96646fc09ebLennart Poettering * notice, this list of conditions and the following disclaimer in
7caa86ac4d19f65e396d759bfb02b96646fc09ebLennart Poettering * the documentation and/or other materials provided with the
7caa86ac4d19f65e396d759bfb02b96646fc09ebLennart Poettering * distribution.
7caa86ac4d19f65e396d759bfb02b96646fc09ebLennart Poettering * 3. The end-user documentation included with the redistribution,
7caa86ac4d19f65e396d759bfb02b96646fc09ebLennart Poettering * if any, must include the following acknowledgment:
7caa86ac4d19f65e396d759bfb02b96646fc09ebLennart Poettering * "This product includes software developed by the
7caa86ac4d19f65e396d759bfb02b96646fc09ebLennart Poettering * Apache Software Foundation (http://www.apache.org/)."
7caa86ac4d19f65e396d759bfb02b96646fc09ebLennart Poettering * Alternately, this acknowledgment may appear in the software itself,
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * if and wherever such third-party acknowledgments normally appear.
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * 4. The names "Apache" and "Apache Software Foundation" must
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * not be used to endorse or promote products derived from this
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * software without prior written permission. For written
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * permission, please contact apache@apache.org.
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * 5. Products derived from this software may not be called "Apache",
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * nor may "Apache" appear in their name, without prior written
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * permission of the Apache Software Foundation.
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * ====================================================================
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * This software consists of voluntary contributions made by many
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * individuals on behalf of the Apache Software Foundation. For more
12b42c76672a66c2d4ea7212c14f8f1b5a62b78dTom Gundersen * information on the Apache Software Foundation, please see
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * Portions of this software are based upon public domain software
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * originally written at the National Center for Supercomputing Applications,
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * University of Illinois, Urbana-Champaign.
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * @package CORE HTTP Daemon
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek/* ****************************************************************
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * The most basic server code is encapsulated in a single module
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * known as the core, which is just *barely* functional enough to
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * serve documents, though not terribly well.
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * Largely for NCSA back-compatibility reasons, the core needs to
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * make pieces of its config structures available to other modules.
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * The accessors are declared here, along with the interpretation
798d3a524ea57aaf40cb53858aaa45ec702f012dZbigniew Jędrzejewski-Szmek * of one of them (allow_options).
#define REMOTE_HOST (0)
#define SATISFY_ALL 0
* @deffunc const char *ap_get_remote_host(conn_rec *conn, void *dir_config, int type, int *str_is_ip)
AP_DECLARE(const char *) ap_get_remote_host(conn_rec *conn, void *dir_config, int type, int *str_is_ip);
struct require_line {
char *requirement;
#ifdef CORE_PRIVATE
* the code that cares really is in http_core.c. Also, another accessor.
void **notes;
int deliver_script;
#define AP_NOTE_DIRECTORY_WALK 0
typedef unsigned char allow_options_t;
typedef unsigned char overrides_t;
typedef unsigned long etag_components_t;
#define ETAG_UNSET 0
/* path of the directory/regex/etc. see also d_is_fnmatch/absolute below */
unsigned d_components;
char *ap_default_type;
int satisfy;
char *ap_auth_type;
char *ap_auth_name;
char **response_code_strings;
#define HOSTNAME_LOOKUP_OFF 0
#define USE_CANONICAL_NAME_OFF (0)
#define ADD_DEFAULT_CHARSET_OFF (0)
const char *add_default_charset_name;
#ifdef RLIMIT_CPU
#ifdef RLIMIT_NPROC
int loglevel;
regex_t *r;
* What attributes/data should be included in ETag generation?
#define ENABLE_MMAP_OFF (0)
#define ENABLE_SENDFILE_OFF (0)
#ifdef GPROF
char *gprof_dir;
const char *ap_document_root;
char *access_name;
/* for AddOutputFiltersByType in core.c */
/* for http_config.c */
AP_CORE_DECLARE_NONSTD(const char *) ap_limit_section(cmd_parms *cmd, void *dummy, const char *arg);
* Runtime status/management
const char *s_value;
long i_value;
const char *description;
const char *name;
* This hook provdes a way for modules to provide metrics/statistics about
(request_rec *r));
#ifdef __cplusplus