Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 367 lines (310 sloc) 14.431 kb
21abc5b @klacke Initial revision
authored
1 %%%----------------------------------------------------------------------
2 %%% File : yaws.hrl
3 %%% Author : Claes Wikstrom <klacke@hyber.org>
455578a @vinoski major trailing whitespace cleanup
vinoski authored
4 %%% Purpose :
21abc5b @klacke Initial revision
authored
5 %%% Created : 16 Jan 2002 by Claes Wikstrom <klacke@hyber.org>
6 %%%----------------------------------------------------------------------
7
8 -author('klacke@hyber.org').
3c06a9e @klacke rearr of includefiles
authored
9
21abc5b @klacke Initial revision
authored
10
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
11
455578a @vinoski major trailing whitespace cleanup
vinoski authored
12 %% flags for gconfs
14176e6 @klacke added feature to not pick first sconf when virthosting
authored
13 -define(GC_TTY_TRACE, 1).
14 -define(GC_DEBUG, 2).
d9342f8 @capflam server-specific logger_mod and auth_mod (capflam)
capflam authored
15 -define(GC_COPY_ERRLOG, 4).
16 -define(GC_BACKWARDS_COMPAT_PARSE, 8).
17 -define(GC_LOG_RESOLVE_HOSTNAME, 16).
18 -define(GC_FAIL_ON_BIND_ERR, 32).
19 -define(GC_PICK_FIRST_VIRTHOST_ON_NOMATCH, 64).
20 -define(GC_USE_FDSRV, 128).
21 -define(GC_USE_OLD_SSL, 256).
6e49e77 @klacke git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/ya...
authored
22
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
23
d9342f8 @capflam server-specific logger_mod and auth_mod (capflam)
capflam authored
24
25 -define(GC_DEF, ?GC_FAIL_ON_BIND_ERR).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
26
455578a @vinoski major trailing whitespace cleanup
vinoski authored
27 -define(gc_has_tty_trace(GC),
d0caaf6 @klacke tabs cleanup
authored
28 ((GC#gconf.flags band ?GC_TTY_TRACE) /= 0)).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
29 -define(gc_has_debug(GC),
d0caaf6 @klacke tabs cleanup
authored
30 ((GC#gconf.flags band ?GC_DEBUG) /= 0)).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
31 -define(gc_has_copy_errlog(GC),
d0caaf6 @klacke tabs cleanup
authored
32 ((GC#gconf.flags band ?GC_COPY_ERRLOG) /= 0)).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
33 -define(gc_log_has_resolve_hostname(GC),
d0caaf6 @klacke tabs cleanup
authored
34 ((GC#gconf.flags band ?GC_LOG_RESOLVE_HOSTNAME) /= 0)).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
35 -define(gc_fail_on_bind_err(GC),
d0caaf6 @klacke tabs cleanup
authored
36 ((GC#gconf.flags band ?GC_FAIL_ON_BIND_ERR) /= 0)).
14176e6 @klacke added feature to not pick first sconf when virthosting
authored
37 -define(gc_pick_first_virthost_on_nomatch(GC),
d0caaf6 @klacke tabs cleanup
authored
38 ((GC#gconf.flags band ?GC_PICK_FIRST_VIRTHOST_ON_NOMATCH) /= 0)).
6e49e77 @klacke git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/ya...
authored
39 -define(gc_use_old_ssl(GC),
40 ((GC#gconf.flags band ?GC_USE_OLD_SSL) /= 0)).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
41
455578a @vinoski major trailing whitespace cleanup
vinoski authored
42 -define(gc_set_tty_trace(GC, Bool),
d0caaf6 @klacke tabs cleanup
authored
43 GC#gconf{flags = yaws:flag(GC#gconf.flags,?GC_TTY_TRACE, Bool)}).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
44 -define(gc_set_debug(GC, Bool),
d0caaf6 @klacke tabs cleanup
authored
45 GC#gconf{flags = yaws:flag(GC#gconf.flags, ?GC_DEBUG, Bool)}).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
46 -define(gc_set_copy_errlog(GC, Bool),
d0caaf6 @klacke tabs cleanup
authored
47 GC#gconf{flags = yaws:flag(GC#gconf.flags, ?GC_COPY_ERRLOG, Bool)}).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
48 -define(gc_log_set_resolve_hostname(GC, Bool),
49 GC#gconf{flags = yaws:flag(GC#gconf.flags,
d0caaf6 @klacke tabs cleanup
authored
50 ?GC_LOG_RESOLVE_HOSTNAME, Bool)}).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
51 -define(gc_set_fail_on_bind_err(GC, Bool),
d0caaf6 @klacke tabs cleanup
authored
52 GC#gconf{flags = yaws:flag(GC#gconf.flags,?GC_FAIL_ON_BIND_ERR,Bool)}).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
53 -define(gc_set_pick_first_virthost_on_nomatch(GC, Bool),
d0caaf6 @klacke tabs cleanup
authored
54 GC#gconf{flags = yaws:flag(GC#gconf.flags,
55 ?GC_PICK_FIRST_VIRTHOST_ON_NOMATCH,Bool)}).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
56 -define(gc_set_use_old_ssl(GC, Bool),
6e49e77 @klacke git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/ya...
authored
57 GC#gconf{flags = yaws:flag(GC#gconf.flags,?GC_USE_OLD_SSL,Bool)}).
58
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
59
c9bd56d @klacke added config flag 'use_large_ssl_pool = bool()'
authored
60
21abc5b @klacke Initial revision
authored
61 %% global conf
c1bdfc7 @capflam cosmetic comment and whitespace cleanup in yaws.hrl
capflam authored
62 -record(gconf,{
63 yaws_dir, % topdir of Yaws installation
64 trace, % false | {true,http} | {true,traffic}
65 flags = ?GC_DEF, % boolean flags
66 logdir,
67 ebin_dir = [],
68 runmods = [], % runmods for entire server
69 keepalive_timeout = 30000,
70 keepalive_maxuses = nolimit, % nolimit or non negative integer
71 max_num_cached_files = 400,
72 max_num_cached_bytes = 1000000, % 1 MEG
73 max_size_cached_file = 8000,
74 max_connections = nolimit, % max number of TCP connections
75
76 %% Override default connection handler processes spawn options for
77 %% performance/memory tuning.
78 %% [] | [{fullsweep_after,Number}, {min_heap_size, Size}]
79 %% other options such as monitor, link are ignored.
80 process_options = [],
81
82 large_file_chunk_size = 10240,
83 mnesia_dir = [],
84 log_wrap_size = 10000000, % wrap logs after 10M
85 cache_refresh_secs = 30, % seconds (auto zero when debug)
86 include_dir = [], % list of inc dirs for .yaws files
87 phpexe = "/usr/bin/php-cgi", % cgi capable php executable
88
89 yaws, % server string
90 id = "default", % string identifying this instance of yaws
91
92 enable_soap = false, % start yaws_soap_srv iff true
93
94 %% a list of
95 %% {{Mod, Func}, WsdlFile, Prefix} | {{Mod, Func}, WsdlFile}
96 %% automatically setup in yaws_soap_srv init.
97 soap_srv_mods = [],
98
99 ysession_mod = yaws_session_server, % storage module for ysession
100 acceptor_pool_size = 8 % size of acceptor proc pool
101 }).
102
103
104
105 -record(ssl, {
106 keyfile,
107 certfile,
108 verify = 0,
109 fail_if_no_peer_cert,
110 depth = 1,
111 password,
112 cacertfile,
113 ciphers,
114 cachetimeout
115 }).
661bd8c @klacke ""
authored
116
117
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
118 %% flags for sconfs
c1bdfc7 @capflam cosmetic comment and whitespace cleanup in yaws.hrl
capflam authored
119 -define(SC_ACCESS_LOG, 1).
120 -define(SC_AUTH_LOG, 2).
121 -define(SC_ADD_PORT, 4).
122 -define(SC_STATISTICS, 8).
123 -define(SC_TILDE_EXPAND, 16).
124 -define(SC_DIR_LISTINGS, 32).
125 -define(SC_DEFLATE, 64).
126 -define(SC_DIR_ALL_ZIP, 128).
127 -define(SC_DAV, 512).
d9342f8 @capflam server-specific logger_mod and auth_mod (capflam)
capflam authored
128 -define(SC_FCGI_TRACE_PROTOCOL, 1024).
129 -define(SC_FCGI_LOG_APP_ERROR, 2048).
130 -define(SC_FORWARD_PROXY, 4096).
131 -define(SC_AUTH_SKIP_DOCROOT, 8192).
132
82a449b @klacke Forward prox functionality added through a patch by Colm Dougan
authored
133
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
134
d9342f8 @capflam server-specific logger_mod and auth_mod (capflam)
capflam authored
135 -define(SC_DEF, ?SC_ACCESS_LOG bor ?SC_ADD_PORT bor ?SC_AUTH_LOG).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
136
455578a @vinoski major trailing whitespace cleanup
vinoski authored
137 -define(sc_has_access_log(SC),
d0caaf6 @klacke tabs cleanup
authored
138 (((SC)#sconf.flags band ?SC_ACCESS_LOG) /= 0)).
d9342f8 @capflam server-specific logger_mod and auth_mod (capflam)
capflam authored
139 -define(sc_has_auth_log(SC),
140 (((SC)#sconf.flags band ?SC_AUTH_LOG) /= 0)).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
141 -define(sc_has_add_port(SC),
d0caaf6 @klacke tabs cleanup
authored
142 (((SC)#sconf.flags band ?SC_ADD_PORT) /= 0)).
8c969fe @oliv3 Support for the statistics option per virtual host
oliv3 authored
143 -define(sc_has_statistics(SC),
144 (((SC)#sconf.flags band ?SC_STATISTICS) /= 0)).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
145 -define(sc_has_tilde_expand(SC),
d0caaf6 @klacke tabs cleanup
authored
146 (((SC)#sconf.flags band ?SC_TILDE_EXPAND) /= 0)).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
147 -define(sc_has_dir_listings(SC),
d0caaf6 @klacke tabs cleanup
authored
148 (((SC)#sconf.flags band ?SC_DIR_LISTINGS) /= 0)).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
149 -define(sc_has_deflate(SC),
d0caaf6 @klacke tabs cleanup
authored
150 (((SC)#sconf.flags band ?SC_DEFLATE) /= 0)).
2e8e005 @mbj4668 Added auto-generate all.zip to dir listings. It needs the zip command i...
mbj4668 authored
151 -define(sc_has_dir_all_zip(SC),
d0caaf6 @klacke tabs cleanup
authored
152 (((SC)#sconf.flags band ?SC_DIR_ALL_ZIP) /= 0)).
868ce8a @mbj4668 reworked the DAV support a bit - don't use an appmod, instead yaws has b...
mbj4668 authored
153 -define(sc_has_dav(SC),
d0caaf6 @klacke tabs cleanup
authored
154 (((SC)#sconf.flags band ?SC_DAV) /= 0)).
2fa66b0 @klacke cgi support
authored
155 -define(sc_fcgi_trace_protocol(SC),
156 (((SC)#sconf.flags band ?SC_FCGI_TRACE_PROTOCOL) /= 0)).
157 -define(sc_fcgi_log_app_error(SC),
158 (((SC)#sconf.flags band ?SC_FCGI_LOG_APP_ERROR) /= 0)).
82a449b @klacke Forward prox functionality added through a patch by Colm Dougan
authored
159 -define(sc_forward_proxy(SC),
160 (((SC)#sconf.flags band ?SC_FORWARD_PROXY) /= 0)).
5155b86 @vinoski Add auth_skip_docroot server config variable (Christian Hennig)
vinoski authored
161 -define(sc_auth_skip_docroot(SC),
162 (((SC)#sconf.flags band ?SC_AUTH_SKIP_DOCROOT) /= 0)).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools, c...
authored
163
3dc56a7 @klacke javascript support in ehtml
authored
164
455578a @vinoski major trailing whitespace cleanup
vinoski authored
165 -define(sc_set_access_log(SC, Bool),
d0caaf6 @klacke tabs cleanup
authored
166 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_ACCESS_LOG, Bool)}).
d9342f8 @capflam server-specific logger_mod and auth_mod (capflam)
capflam authored
167 -define(sc_set_auth_log(SC, Bool),
168 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_AUTH_LOG, Bool)}).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
169 -define(sc_set_add_port(SC, Bool),
d0caaf6 @klacke tabs cleanup
authored
170 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_ADD_PORT, Bool)}).
8c969fe @oliv3 Support for the statistics option per virtual host
oliv3 authored
171 -define(sc_set_statistics(SC, Bool),
172 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_STATISTICS, Bool)}).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
173 -define(sc_set_ssl(SC, Bool),
8c969fe @oliv3 Support for the statistics option per virtual host
oliv3 authored
174 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_SSL, Bool)}).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
175 -define(sc_set_tilde_expand(SC, Bool),
d0caaf6 @klacke tabs cleanup
authored
176 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_TILDE_EXPAND, Bool)}).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
177 -define(sc_set_dir_listings(SC, Bool),
d0caaf6 @klacke tabs cleanup
authored
178 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_DIR_LISTINGS, Bool)}).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
179 -define(sc_set_deflate(SC, Bool),
d0caaf6 @klacke tabs cleanup
authored
180 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_DEFLATE, Bool)}).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
181 -define(sc_set_dir_all_zip(SC, Bool),
d0caaf6 @klacke tabs cleanup
authored
182 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_DIR_ALL_ZIP, Bool)}).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
183 -define(sc_set_dav(SC, Bool),
d0caaf6 @klacke tabs cleanup
authored
184 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_DAV, Bool)}).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
185 -define(sc_set_fcgi_trace_protocol(SC, Bool),
186 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_FCGI_TRACE_PROTOCOL,
82a449b @klacke Forward prox functionality added through a patch by Colm Dougan
authored
187 Bool)}).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
188 -define(sc_set_fcgi_log_app_error(SC, Bool),
189 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_FCGI_LOG_APP_ERROR,
82a449b @klacke Forward prox functionality added through a patch by Colm Dougan
authored
190 Bool)}).
455578a @vinoski major trailing whitespace cleanup
vinoski authored
191 -define(sc_set_forward_proxy(SC, Bool),
82a449b @klacke Forward prox functionality added through a patch by Colm Dougan
authored
192 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_FORWARD_PROXY, Bool)}).
5155b86 @vinoski Add auth_skip_docroot server config variable (Christian Hennig)
vinoski authored
193 -define(sc_set_auth_skip_docroot(SC, Bool),
194 SC#sconf{flags = yaws:flag(SC#sconf.flags,?SC_AUTH_SKIP_DOCROOT,Bool)}).
3dc56a7 @klacke javascript support in ehtml
authored
195
196
21abc5b @klacke Initial revision
authored
197 %% server conf
c1bdfc7 @capflam cosmetic comment and whitespace cleanup in yaws.hrl
capflam authored
198 %% we cannot compare sconfs directly due to the ets field in #sconf{} use
199 %% yaws_config:eq_sconfs/2
200 -record(sconf, {
201 port = 8000, % which port is this server listening to
202 flags = ?SC_DEF,
203 redirect_map=[], % a list of
204 % {Prefix, #url{}, append|noappend}
205 % #url{} can be partially populated
206
207 rhost, % forced redirect host (+ optional port)
208 rmethod, % forced redirect method
209 docroot, % path to the docs
210 xtra_docroots = [], % if we have additional pseudo docroots
211 listen = [{127,0,0,1}], % bind to this IP, {0,0,0,0} is possible
212 servername = "localhost", % servername is what Host: header is
213 yaws, % server string for this vhost
214 ets, % local store for this server
215 ssl, % undefined | #ssl{}
216 authdirs = [],
217 partial_post_size = 10240,
218
219 %% An item in the appmods list can be either of the
220 %% following, this is all due to backwards compat issues.
221 %% 1. an atom - this is the equivalent to {atom, atom}
222 %% 2 . A two tuple {Path, Mod}
223 %% 3 A three tuple {Path, Mod, [ExcludeDir ....]}
224 appmods = [],
225
226 expires = [],
227 errormod_401 = yaws_outmod, % the default 401 error module
228 errormod_404 = yaws_outmod, % the default 404 error module
229 errormod_crash = yaws_outmod, % use the same module for crashes
230 arg_rewrite_mod = yaws,
231 logger_mod = yaws_log, % access/auth logging module
232 opaque = [], % useful in embedded mode
233 start_mod, % user provided module to be started
234 allowed_scripts = [yaws,php,cgi,fcgi],
235 tilde_allowed_scripts = [],
236 revproxy = [],
237 soptions = [],
238 extra_cgi_vars = [],
239 stats, % raw traffic statistics
240 fcgi_app_server, % FastCGI application server {host,port}
241 php_handler = {cgi, "/usr/bin/php-cgi"},
c74a92e @capflam Add options to configure deflate compression behaviour
capflam authored
242 shaper,
243 deflate_options
55c9af7 Changed implementation of multipart form data. There is a new config
Seah Hinde authored
244 }).
21abc5b @klacke Initial revision
authored
245
3dc56a7 @klacke javascript support in ehtml
authored
246
c1bdfc7 @capflam cosmetic comment and whitespace cleanup in yaws.hrl
capflam authored
247 %% Auth conf - from server conf and .yaws_auth
248 -record(auth, {
249 dir = [],
250 docroot = [],
251 files = [],
252 realm = "",
253 type = "Basic",
254 headers = [], % headers to send on 401
255 users = [], % list of {User, Password} tuples
256 acl = none, % list of allowed/denies IPs or none
257 mod = [], % authentication module callback
258 outmod = [], % module to handles 401 unauthorized messages
259 pam = false % should we use pam to auth a user
260 }).
00303e2 @klacke outh record, the outgoing headers are built up into a record now, much c...
authored
261
4ad4101 @jonhen Virtual Directory support. ARG record and CGI variable changes
jonhen authored
262
c74a92e @capflam Add options to configure deflate compression behaviour
capflam authored
263 %% Macro used to list default compressible mime-types
264 -define(DEFAULT_COMPRESSIBLE_MIME_TYPES, [
265 {"text", all},
266 {"application", "rtf"},
267 {"application", "msword"},
268 {"application", "postscript"},
269 {"application", "pdf"},
270 {"application", "x-dvi"},
271 {"application", "javascript"},
272 {"application", "x-javascript"}
273 ]).
274
275 %% Internal record used to initialize a zlib stream for compression
276 -record(deflate, {
277 min_compress_size = nolimit, % nolimit or non negative integer
278 % (in bytes)
279 compression_level = default, % none | default | best_compression |
280 % best_speed | 0..9
281 window_size = -15, % -15..-9
282 mem_level = 8, % 1..9
283 strategy = default, % default | filtered | huffman_only
8981ce2 @capflam Add support for precompressed static files
capflam authored
284 use_gzip_static = false,
c74a92e @capflam Add options to configure deflate compression behaviour
capflam authored
285
286 %% [{Type, undefined|SubType}] | all
287 mime_types = ?DEFAULT_COMPRESSIBLE_MIME_TYPES
288 }).
289
00303e2 @klacke outh record, the outgoing headers are built up into a record now, much c...
authored
290
c1bdfc7 @capflam cosmetic comment and whitespace cleanup in yaws.hrl
capflam authored
291 %% this internal record is used and returned by the URL path parser
292 -record(urltype, {
293 type, % error | yaws | regular | directory | forbidden |
294 % appmod
295 finfo,
296 path = [],
297 fullpath = [], % deep list (WHY?)
298 dir = [], % relative dir where the path leads to
299 % flat | unflat need flat for authentication
300 data, % type-specific
301 % e.g: Binary | FileDescriptor | DirListing | undefined
302 deflate, % undefined | Binary | dynamic
303 mime = "text/html",
304 getpath, % as GET'ed by client
305 pathinfo
306 }).
00303e2 @klacke outh record, the outgoing headers are built up into a record now, much c...
authored
307
308
309
310
c1bdfc7 @capflam cosmetic comment and whitespace cleanup in yaws.hrl
capflam authored
311 %% this record is constructed as we build up the outgoing headers
00303e2 @klacke outh record, the outgoing headers are built up into a record now, much c...
authored
312 -record(outh, {
c1bdfc7 @capflam cosmetic comment and whitespace cleanup in yaws.hrl
capflam authored
313 status, % int status code
314
315 doclose, % bool
316 chunked, % bool
317 exceedmaxuses=false, % bool, true if hit keep-alive max uses
cab8a28 @capflam Improve how the responses compression is handled
capflam authored
318 encoding=decide, % decide, identity, deflate
c1bdfc7 @capflam cosmetic comment and whitespace cleanup in yaws.hrl
capflam authored
319 contlen, % integer
320 act_contlen, % actual content length for dynamic pages
321 % and the total set of out headers we can have as
322 % actual strings
d0caaf6 @klacke tabs cleanup
authored
323 connection,
324 server,
325 location,
326 cache_control,
c60fc5f @capflam add control for "Expires" and "Cache-Control" response headers (capflam)
capflam authored
327 expires,
d0caaf6 @klacke tabs cleanup
authored
328 date,
329 allow,
330 last_modified,
331 etag,
332 set_cookie,
333 content_range,
334 content_length,
335 content_type,
336 content_encoding,
337 transfer_encoding,
338 www_authenticate,
c1bdfc7 @capflam cosmetic comment and whitespace cleanup in yaws.hrl
capflam authored
339 other % misc other headers
340 }).
00303e2 @klacke outh record, the outgoing headers are built up into a record now, much c...
authored
341
342
455578a @vinoski major trailing whitespace cleanup
vinoski authored
343
ef3a52a @klacke Removed the atoms in parse_post and parse query, backwards incompatible ...
authored
344
b67bbd8 @klacke Rewrote url splitting (again), and made the redir to index.{html,yaws} g...
authored
345
346
31fdaae @klacke pam cleanup, add env record, yaws_ls enhancements by doccarcass@gmail.co...
authored
347 %% as read by application:get_env()
c1bdfc7 @capflam cosmetic comment and whitespace cleanup in yaws.hrl
capflam authored
348 -record(env, {
349 debug,
350 trace,
351 traceoutput,
352 conf,
353 runmod,
354 embedded,
355 id
356 }).
31fdaae @klacke pam cleanup, add env record, yaws_ls enhancements by doccarcass@gmail.co...
authored
357
9ab391e @klacke warn when crypto app is not there
authored
358 %% Typically used in error printouts as in:
359 %% error_logger:format("Err ~p at ~p~n", [Reason, ?stack()])
360 -define(stack(), try throw(1) catch _:_ -> erlang:get_stacktrace() end).
a1e2e74 @lefant add implementation of X-Forwarded-For header (Fabian Linzberger)
lefant authored
361
362
363 %%% The following is for emacs, do not remove
364 %%% Local Variables:
365 %%% comment-column: 36
366 %%% End:
Something went wrong with that request. Please try again.