~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/inets/src/httpd.hrl

  • Committer: Bazaar Package Importer
  • Author(s): Erlang Packagers, Sergei Golovan
  • Date: 2006-12-03 17:07:44 UTC
  • mfrom: (2.1.11 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203170744-rghjwupacqlzs6kv
Tags: 1:11.b.2-4
[ Sergei Golovan ]
Fixed erlang-base and erlang-base-hipe prerm scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
%% ``The contents of this file are subject to the Erlang Public License,
2
 
%% Version 1.1, (the "License"); you may not use this file except in
3
 
%% compliance with the License. You should have received a copy of the
4
 
%% Erlang Public License along with this software. If not, it can be
5
 
%% retrieved via the world wide web at http://www.erlang.org/.
6
 
%% 
7
 
%% Software distributed under the License is distributed on an "AS IS"
8
 
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
9
 
%% the License for the specific language governing rights and limitations
10
 
%% under the License.
11
 
%% 
12
 
%% The Initial Developer of the Original Code is Ericsson Utvecklings AB.
13
 
%% Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings
14
 
%% AB. All Rights Reserved.''
15
 
%% 
16
 
%%     $Id$
17
 
%%
18
 
 
19
 
-include_lib("kernel/include/file.hrl").
20
 
 
21
 
-ifndef(SERVER_SOFTWARE).
22
 
-define(SERVER_SOFTWARE,"inets/develop").       % Define in Makefile!
23
 
-endif.
24
 
-define(SERVER_PROTOCOL,"HTTP/1.1").
25
 
-define(SOCKET_CHUNK_SIZE,8192).
26
 
-define(SOCKET_MAX_POLL,25).
27
 
-define(FILE_CHUNK_SIZE,64*1024).
28
 
-define(NICE(Reason),lists:flatten(atom_to_list(?MODULE)++": "++Reason)).
29
 
-define(DEFAULT_CONTEXT,
30
 
        [{errmsg,"[an error occurred while processing this directive]"},
31
 
         {timefmt,"%A, %d-%b-%y %T %Z"},
32
 
         {sizefmt,"abbrev"}]).
33
 
 
34
 
 
35
 
-ifdef(inets_error).
36
 
-define(ERROR(Format, Args), io:format("E(~p:~p:~p) : "++Format++"~n",
37
 
                                       [self(),?MODULE,?LINE]++Args)).
38
 
-else.
39
 
-define(ERROR(F,A),[]).
40
 
-endif.
41
 
 
42
 
-ifdef(inets_log).
43
 
-define(LOG(Format, Args), io:format("L(~p:~p:~p) : "++Format++"~n",
44
 
                                     [self(),?MODULE,?LINE]++Args)).
45
 
-else.
46
 
-define(LOG(F,A),[]).
47
 
-endif.
48
 
 
49
 
-ifdef(inets_debug).
50
 
-define(DEBUG(Format, Args), io:format("D(~p:~p:~p) : "++Format++"~n",
51
 
                                       [self(),?MODULE,?LINE]++Args)).
52
 
-else.
53
 
-define(DEBUG(F,A),[]).
54
 
-endif.
55
 
 
56
 
-ifdef(inets_cdebug).
57
 
-define(CDEBUG(Format, Args), io:format("C(~p:~p:~p) : "++Format++"~n",
58
 
                                       [self(),?MODULE,?LINE]++Args)).
59
 
-else.
60
 
-define(CDEBUG(F,A),[]).
61
 
-endif.
62
 
 
63
 
 
64
 
-record(init_data,{peername,resolve}).
65
 
-record(mod,{init_data,
66
 
             data=[],
67
 
             socket_type=ip_comm,
68
 
             socket,
69
 
             config_db,
70
 
             method,
71
 
             absolute_uri=[],
72
 
             request_uri,
73
 
             http_version,
74
 
             request_line,
75
 
             parsed_header=[],
76
 
             entity_body,
77
 
             connection}).