4
Copyright (C) 2006 Felipe Monteiro de Carvalho
6
This unit is a pascal binding for the Apache 2.0.58 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.
60
LibHTTPD = 'libhttpd.dll';
65
{ Declarations moved here to be on top of all declarations }
67
{ configuration vector structure }
69
ap_conf_vector_t = record end;
70
Pap_conf_vector_t = ^ap_conf_vector_t;
71
PPap_conf_vector_t = ^Pap_conf_vector_t;
74
Main httpd header files
76
Note: There are more include files other then these, because some include files
80
{$include ap_provider.inc}
81
{$include util_cfgtree.inc}
84
{$include http_config.inc}
85
{$include http_core.inc}
86
{$include http_log.inc}
87
{$include http_main.inc}
88
{$include http_protocol.inc}
89
{$include http_request.inc}
90
{$include http_connection.inc}
91
{$include http_vhost.inc}
93
{$include util_script.inc}
94
{$include util_time.inc}
95
{$include util_md5.inc}
101
Macros transformed into functions in the translation
106
{ Internal representation for a HTTP protocol number, e.g., HTTP/1.1 }
107
function HTTP_VERSION(major, minor: Integer): Integer;
109
Result := (1000*(major)+(minor));
112
{ Major part of HTTP protocol }
113
function HTTP_VERSION_MAJOR(number: Integer): Integer;
115
Result := number div 1000;
118
{ Minor part of HTTP protocol }
119
function HTTP_VERSION_MINOR(number: Integer): Integer;
121
Result := number mod 1000;
124
function ap_escape_uri(p: Papr_pool_t; const path: PChar): PChar;
126
Result := ap_os_escape_path(p, path, 1);
129
{ from http_config.inc }
131
{ Use this in all standard modules }
132
procedure STANDARD20_MODULE_STUFF(var mod_: module);
134
mod_.version := MODULE_MAGIC_NUMBER_MAJOR;
135
mod_.minor_version := MODULE_MAGIC_NUMBER_MINOR;
136
mod_.module_index := -1;
138
mod_.dynamic_load_handle := nil;
140
mod_.magic := MODULE_MAGIC_COOKIE;
141
mod_.rewrite_args := nil;
144
{ Use this only in MPMs }
145
procedure MPM20_MODULE_STUFF(var mod_: module);
147
mod_.version := MODULE_MAGIC_NUMBER_MAJOR;
148
mod_.minor_version := MODULE_MAGIC_NUMBER_MINOR;
149
mod_.module_index := -1;
151
mod_.dynamic_load_handle := nil;
153
mod_.magic := MODULE_MAGIC_COOKIE;
156
function ap_get_module_config(v: Pap_conf_vector_t; m: Pmodule): Pap_conf_vector_t;
158
Result := Pointer(Integer(v) + m^.module_index);
161
procedure ap_set_module_config(v: Pap_conf_vector_t; m: Pmodule; val: Pap_conf_vector_t);
165
P := PPointer(Integer(v) + m^.module_index);