4
Copyright (C) 2006 Felipe Monteiro de Carvalho
6
This unit is a pascal binding for the Apache 1.3.37 headers.
7
The headers were released under the following copyright:
9
{ Licensed to the Apache Software Foundation (ASF) under one or more
10
* contributor license agreements. See the NOTICE file distributed with
11
* this work for additional information regarding copyright ownership.
12
* The ASF licenses this file to You under the Apache License, Version 2.0
13
* (the "License"); you may not use this file except in compliance with
14
* the License. You may obtain a copy of the License at
16
* http://www.apache.org/licenses/LICENSE-2.0
18
* Unless required by applicable law or agreed to in writing, software
19
* distributed under the License is distributed on an "AS IS" BASIS,
20
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
* See the License for the specific language governing permissions and
22
* limitations under the License.
64
LibHTTPD = 'ApacheCore.dll';
69
{ Declarations moved here to be on top of all declarations }
76
{ configuration vector structure }
78
ap_conf_vector_t = record end;
79
Pap_conf_vector_t = ^ap_conf_vector_t;
80
PPap_conf_vector_t = ^Pap_conf_vector_t;
83
Main httpd header files
85
Note: There are more include files other then these, because some include files
89
{.$include ap_provider.inc}
90
{.$include util_cfgtree.inc}
93
{$include http_config.inc}
94
{$include http_core.inc}
95
{$include http_log.inc}
96
{$include http_main.inc}
97
{$include http_protocol.inc}
98
{$include http_request.inc}
99
{$include http_vhost.inc}
101
{.$include util_script.inc}
102
{.$include util_time.inc}
103
{.$include util_md5.inc}
104
{.$include ap_mpm.inc}
109
Macros transformed into functions in the translation
114
{ Internal representation for a HTTP protocol number, e.g., HTTP/1.1 }
115
function HTTP_VERSION(major, minor: Integer): Integer;
117
Result := (1000*(major)+(minor));
120
{ Major part of HTTP protocol }
121
function HTTP_VERSION_MAJOR(number: Integer): Integer;
123
Result := number div 1000;
126
{ Minor part of HTTP protocol }
127
function HTTP_VERSION_MINOR(number: Integer): Integer;
129
Result := number mod 1000;
132
{function ap_escape_uri(p: Papr_pool_t; const path: PChar): PChar;
134
Result := ap_os_escape_path(p, path, 1);
137
{ from http_config.inc }
139
{ Use this in all standard modules }
141
procedure STANDARD_MODULE_STUFF(var mod_: module);
143
mod_.version := MODULE_MAGIC_NUMBER_MAJOR;
144
mod_.minor_version := MODULE_MAGIC_NUMBER_MINOR;
145
mod_.module_index := -1;
147
mod_.dynamic_load_handle := nil;
149
mod_.magic := MODULE_MAGIC_COOKIE;
152
{ Use this only in MPMs }
153
//procedure MPM20_MODULE_STUFF(var mod_: module);
155
// mod_.version := MODULE_MAGIC_NUMBER_MAJOR;
156
// mod_.minor_version := MODULE_MAGIC_NUMBER_MINOR;
157
// mod_.module_index := -1;
159
// mod_.dynamic_load_handle := nil;
161
// mod_.magic := MODULE_MAGIC_COOKIE;
164
function ap_get_module_config(v: Pap_conf_vector_t; m: Pmodule): Pap_conf_vector_t;
166
Result := Pointer(PtrInt(v) + m^.module_index);
169
procedure ap_set_module_config(v: Pap_conf_vector_t; m: Pmodule; val: Pap_conf_vector_t);
173
P := PPointer(PtrInt(v) + m^.module_index);