Skip to content
Newer
Older
100644 304 lines (250 sloc) 11.1 KB
21abc5b @klacke Initial revision
authored Feb 11, 2002
1 %%%----------------------------------------------------------------------
2 %%% File : yaws.hrl
3 %%% Author : Claes Wikstrom <klacke@hyber.org>
4 %%% Purpose :
5 %%% Created : 16 Jan 2002 by Claes Wikstrom <klacke@hyber.org>
6 %%%----------------------------------------------------------------------
7
8 -author('klacke@hyber.org').
3c06a9e @klacke rearr of includefiles
authored Oct 10, 2002
9
21abc5b @klacke Initial revision
authored Feb 11, 2002
10
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
11
12 %% flags for gconfs
14176e6 @klacke added feature to not pick first sconf when virthosting
authored Sep 29, 2005
13 -define(GC_TTY_TRACE, 1).
14 -define(GC_DEBUG, 2).
15 -define(GC_AUTH_LOG, 4).
16 -define(GC_COPY_ERRLOG, 8).
17 -define(GC_BACKWARDS_COMPAT_PARSE, 16).
18 -define(GC_LOG_RESOLVE_HOSTNAME, 32).
19 -define(GC_FAIL_ON_BIND_ERR, 64).
20 -define(GC_PICK_FIRST_VIRTHOST_ON_NOMATCH, 128).
576139e @klacke added support for fdsrv
authored Nov 30, 2005
21 -define(GC_USE_FDSRV, 256).
6e49e77 @klacke git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk…
authored Feb 14, 2008
22 -define(GC_USE_OLD_SSL, 512).
23
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
24
92d0daf @klacke ""
authored Feb 15, 2005
25 -define(GC_DEF, (?GC_AUTH_LOG bor ?GC_FAIL_ON_BIND_ERR)).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
26
27 -define(gc_has_tty_trace(GC),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
28 ((GC#gconf.flags band ?GC_TTY_TRACE) /= 0)).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
29 -define(gc_has_debug(GC),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
30 ((GC#gconf.flags band ?GC_DEBUG) /= 0)).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
31 -define(gc_has_auth_log(GC),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
32 ((GC#gconf.flags band ?GC_AUTH_LOG) /= 0)).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
33 -define(gc_has_copy_errlog(GC),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
34 ((GC#gconf.flags band ?GC_COPY_ERRLOG) /= 0)).
2ca4bda @klacke added client IP resolv for access log files
authored Dec 13, 2004
35 -define(gc_log_has_resolve_hostname(GC),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
36 ((GC#gconf.flags band ?GC_LOG_RESOLVE_HOSTNAME) /= 0)).
92d0daf @klacke ""
authored Feb 15, 2005
37 -define(gc_fail_on_bind_err(GC),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
38 ((GC#gconf.flags band ?GC_FAIL_ON_BIND_ERR) /= 0)).
14176e6 @klacke added feature to not pick first sconf when virthosting
authored Sep 29, 2005
39 -define(gc_pick_first_virthost_on_nomatch(GC),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
40 ((GC#gconf.flags band ?GC_PICK_FIRST_VIRTHOST_ON_NOMATCH) /= 0)).
576139e @klacke added support for fdsrv
authored Nov 30, 2005
41 -define(gc_use_fdsrv(GC),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
42 ((GC#gconf.flags band ?GC_USE_FDSRV) /= 0)).
6e49e77 @klacke git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk…
authored Feb 14, 2008
43 -define(gc_use_old_ssl(GC),
44 ((GC#gconf.flags band ?GC_USE_OLD_SSL) /= 0)).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
45
46 -define(gc_set_tty_trace(GC, Bool),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
47 GC#gconf{flags = yaws:flag(GC#gconf.flags,?GC_TTY_TRACE, Bool)}).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
48 -define(gc_set_debug(GC, Bool),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
49 GC#gconf{flags = yaws:flag(GC#gconf.flags, ?GC_DEBUG, Bool)}).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
50 -define(gc_set_auth_log(GC, Bool),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
51 GC#gconf{flags = yaws:flag(GC#gconf.flags, ?GC_AUTH_LOG, Bool)}).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
52 -define(gc_set_copy_errlog(GC, Bool),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
53 GC#gconf{flags = yaws:flag(GC#gconf.flags, ?GC_COPY_ERRLOG, Bool)}).
2ca4bda @klacke added client IP resolv for access log files
authored Dec 13, 2004
54 -define(gc_log_set_resolve_hostname(GC, Bool),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
55 GC#gconf{flags = yaws:flag(GC#gconf.flags,
56 ?GC_LOG_RESOLVE_HOSTNAME, Bool)}).
92d0daf @klacke ""
authored Feb 15, 2005
57 -define(gc_set_fail_on_bind_err(GC, Bool),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
58 GC#gconf{flags = yaws:flag(GC#gconf.flags,?GC_FAIL_ON_BIND_ERR,Bool)}).
14176e6 @klacke added feature to not pick first sconf when virthosting
authored Sep 29, 2005
59 -define(gc_set_pick_first_virthost_on_nomatch(GC, Bool),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
60 GC#gconf{flags = yaws:flag(GC#gconf.flags,
61 ?GC_PICK_FIRST_VIRTHOST_ON_NOMATCH,Bool)}).
576139e @klacke added support for fdsrv
authored Nov 30, 2005
62 -define(gc_set_use_fdsrv(GC, Bool),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
63 GC#gconf{flags = yaws:flag(GC#gconf.flags,?GC_USE_FDSRV,Bool)}).
6e49e77 @klacke git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk…
authored Feb 14, 2008
64 -define(gc_set_use_old_ssl(GC, Bool),
65 GC#gconf{flags = yaws:flag(GC#gconf.flags,?GC_USE_OLD_SSL,Bool)}).
66
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
67
c9bd56d @klacke added config flag 'use_large_ssl_pool = bool()'
authored Sep 19, 2006
68
21abc5b @klacke Initial revision
authored Feb 11, 2002
69 %% global conf
5ddf4f4 @klacke Bug fixed with bindings that got propagated over redirects. Good ol g…
authored Apr 12, 2005
70 -record(gconf,{yaws_dir, %% topdir of Yaws installation
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
71 trace, %% false | {true,http}|{true,traffic}
72 flags = ?GC_DEF, %% boolean flags
73 logdir,
74 ebin_dir = [],
75 runmods = [], %% runmods for entire server
76 keepalive_timeout = 15000,
77 max_num_cached_files = 400,
78 max_num_cached_bytes = 1000000, %% 1 MEG
79 max_size_cached_file = 8000,
80 large_file_chunk_size = 10240,
2fa66b0 @klacke cgi support
authored Jul 10, 2009
81 mnesia_dir = [],
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
82 log_wrap_size = 10000000, % wrap logs after 10M
83 cache_refresh_secs = 30, % seconds (auto zero when debug)
84 include_dir = [], %% list of inc dirs for .yaws files
85 phpexe = "/usr/bin/php-cgi", %% cgi capable php executable
86 yaws, %% server string
87 id = "default", %% string identifying this instance of yaws
88 enable_soap = false %% start yaws_soap_srv iff true
89 }).
3dc56a7 @klacke javascript support in ehtml
authored Sep 12, 2002
90
21abc5b @klacke Initial revision
authored Feb 11, 2002
91
92
661bd8c @klacke ""
authored May 29, 2002
93 -record(ssl,
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
94 {
95 keyfile,
96 certfile,
97 verify = 0,
98 depth = 1,
99 password,
100 cacertfile,
101 ciphers,
102 cachetimeout}).
661bd8c @klacke ""
authored May 29, 2002
103
104
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
105 %% flags for sconfs
2fa66b0 @klacke cgi support
authored Jul 10, 2009
106 -define(SC_ACCESS_LOG, 1).
107 -define(SC_ADD_PORT, 2).
8c969fe @oliv3 Support for the statistics option per virtual host
oliv3 authored Jun 10, 2009
108 -define(SC_STATISTICS, 4).
2fa66b0 @klacke cgi support
authored Jul 10, 2009
109 -define(SC_TILDE_EXPAND, 8).
110 -define(SC_DIR_LISTINGS, 16).
111 -define(SC_DEFLATE, 32).
112 -define(SC_DIR_ALL_ZIP, 64).
113 -define(SC_DAV, 128).
114 -define(SC_FCGI_TRACE_PROTOCOL, 512).
115 -define(SC_FCGI_LOG_APP_ERROR, 1024).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
116
117 -define(SC_DEF, ?SC_ACCESS_LOG bor ?SC_ADD_PORT).
118
119 -define(sc_has_access_log(SC),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
120 (((SC)#sconf.flags band ?SC_ACCESS_LOG) /= 0)).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
121 -define(sc_has_add_port(SC),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
122 (((SC)#sconf.flags band ?SC_ADD_PORT) /= 0)).
8c969fe @oliv3 Support for the statistics option per virtual host
oliv3 authored Jun 10, 2009
123 -define(sc_has_statistics(SC),
124 (((SC)#sconf.flags band ?SC_STATISTICS) /= 0)).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
125 -define(sc_has_tilde_expand(SC),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
126 (((SC)#sconf.flags band ?SC_TILDE_EXPAND) /= 0)).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
127 -define(sc_has_dir_listings(SC),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
128 (((SC)#sconf.flags band ?SC_DIR_LISTINGS) /= 0)).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
129 -define(sc_has_deflate(SC),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
130 (((SC)#sconf.flags band ?SC_DEFLATE) /= 0)).
2e8e005 @mbj4668 Added auto-generate all.zip to dir listings. It needs the zip command…
mbj4668 authored Nov 2, 2004
131 -define(sc_has_dir_all_zip(SC),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
132 (((SC)#sconf.flags band ?SC_DIR_ALL_ZIP) /= 0)).
868ce8a @mbj4668 reworked the DAV support a bit - don't use an appmod, instead yaws ha…
mbj4668 authored Nov 23, 2005
133 -define(sc_has_dav(SC),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
134 (((SC)#sconf.flags band ?SC_DAV) /= 0)).
2fa66b0 @klacke cgi support
authored Jul 10, 2009
135 -define(sc_fcgi_trace_protocol(SC),
136 (((SC)#sconf.flags band ?SC_FCGI_TRACE_PROTOCOL) /= 0)).
137 -define(sc_fcgi_log_app_error(SC),
138 (((SC)#sconf.flags band ?SC_FCGI_LOG_APP_ERROR) /= 0)).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
139
3dc56a7 @klacke javascript support in ehtml
authored Sep 12, 2002
140
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
141 -define(sc_set_access_log(SC, Bool),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
142 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_ACCESS_LOG, Bool)}).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
143 -define(sc_set_add_port(SC, Bool),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
144 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_ADD_PORT, Bool)}).
8c969fe @oliv3 Support for the statistics option per virtual host
oliv3 authored Jun 10, 2009
145 -define(sc_set_statistics(SC, Bool),
146 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_STATISTICS, Bool)}).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
147 -define(sc_set_ssl(SC, Bool),
8c969fe @oliv3 Support for the statistics option per virtual host
oliv3 authored Jun 10, 2009
148 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_SSL, Bool)}).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
149 -define(sc_set_tilde_expand(SC, Bool),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
150 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_TILDE_EXPAND, Bool)}).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
151 -define(sc_set_dir_listings(SC, Bool),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
152 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_DIR_LISTINGS, Bool)}).
7fd4ad4 @klacke backwards incomp cahnge with flags in gc and sc instead of many bools…
authored Mar 11, 2004
153 -define(sc_set_deflate(SC, Bool),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
154 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_DEFLATE, Bool)}).
2e8e005 @mbj4668 Added auto-generate all.zip to dir listings. It needs the zip command…
mbj4668 authored Nov 2, 2004
155 -define(sc_set_dir_all_zip(SC, Bool),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
156 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_DIR_ALL_ZIP, Bool)}).
868ce8a @mbj4668 reworked the DAV support a bit - don't use an appmod, instead yaws ha…
mbj4668 authored Nov 23, 2005
157 -define(sc_set_dav(SC, Bool),
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
158 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_DAV, Bool)}).
2fa66b0 @klacke cgi support
authored Jul 10, 2009
159 -define(sc_set_fcgi_trace_protocol(SC, Bool),
160 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_FCGI_TRACE_PROTOCOL, Bool)}).
161 -define(sc_set_fcgi_log_app_error(SC, Bool),
162 SC#sconf{flags = yaws:flag(SC#sconf.flags, ?SC_FCGI_LOG_APP_ERROR, Bool)}).
3dc56a7 @klacke javascript support in ehtml
authored Sep 12, 2002
163
164
165
21abc5b @klacke Initial revision
authored Feb 11, 2002
166 %% server conf
167 -record(sconf,
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
168 {port = 8000, %% which port is this server listening to
169 flags = ?SC_DEF,
814bae1 @klacke cleaned up the redirect feature. It was poorly implemented and poorly…
authored Feb 13, 2009
170 redirect_map=[], %% a list of
171 %% {Prefix, #url{}, append|noappend}
172 %% #url{} can be partially populated
173
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
174 rhost, %% forced redirect host (+ optional port)
175 rmethod, %% forced redirect method
176 docroot, %% path to the docs
177 xtra_docroots = [], %% if we have additional pseudo docroots
178 listen = {127,0,0,1}, %% bind to this IP, {0,0,0,0} is possible
179 servername = "localhost", %% servername is what Host: header is
180 ets, %% local store for this server
181 ssl, %% undefined | #ssl{}
182 authdirs = [],
183 partial_post_size = nolimit,
184 appmods = [], %% list of modules for this app
c1cea99 @faal Changed the way authentication is done, added support for multiple au…
faal authored Apr 16, 2009
185 errormod_401 = yaws_outmod, %% the default 401 error module
2fa66b0 @klacke cgi support
authored Jul 10, 2009
186 errormod_404 = yaws_outmod, %% the default 404 error module
c1cea99 @faal Changed the way authentication is done, added support for multiple au…
faal authored Apr 15, 2009
187 errormod_crash = yaws_outmod, %% use the same module for crashes
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
188 arg_rewrite_mod = yaws,
189 opaque = [], %% useful in embedded mode
190 start_mod, %% user provided module to be started
2fa66b0 @klacke cgi support
authored Jul 10, 2009
191 allowed_scripts = [yaws,php,cgi,fcgi],
fe70f74 @klacke embedded startup problem solved by Anders Nygren
authored Apr 22, 2008
192 tilde_allowed_scripts = [],
9b8f828 @vinoski incorporate Lev Walkin's patch for a configurable TCP listen backlog,
vinoski authored Dec 28, 2008
193 revproxy = [],
1b0f3d7 @klacke Cleanup + minor preparation for extension handler mod
authored Mar 6, 2009
194 soptions = [],
7d9f3ab @klacke add extra cgi vars patch from joe_e_e
authored May 4, 2009
195 extra_cgi_vars = [],
8c969fe @oliv3 Support for the statistics option per virtual host
oliv3 authored Jun 10, 2009
196 stats, %% raw traffic statistics
2fa66b0 @klacke cgi support
authored Jul 10, 2009
197 fcgi_app_server_host, %% FastCGI application server host name or IP address
198
199 fcgi_app_server_port, %% FastCGI application server port number
200
54139d8 @klacke prepare for 1.81
authored Mar 10, 2009
201 %% [{Extension:string(), Mod:atom()]
202 %% work in progress .....
f44be6a @klacke all calls to old deprecated guard tests removed
authored Mar 30, 2009
203 extension_mods = [{"ys", yaws_ext_handler_yaws}]
54139d8 @klacke prepare for 1.81
authored Mar 9, 2009
204
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
205 }).
21abc5b @klacke Initial revision
authored Feb 11, 2002
206
9199a36 @klacke added support for config changes without stopping the running systems…
authored Dec 15, 2004
207 %% we cannot compare sconfs directly due to the ets
208 %% field in #sconf{} use yaws_config:eq_sconfs/2
209
0d6e5ea @klacke fixed tilde username expansion it didn't work, also made thta a confi…
authored Oct 15, 2002
210
0dd21d2 Added Basic Authentication support with a new subsection to the serve…
Seah Hinde authored Aug 5, 2002
211 % Auth conf - from server conf and .yaws_auth
212 -record(auth,
55c9af7 Changed implementation of multipart form data. There is a new config
Seah Hinde authored Aug 23, 2002
213 {dir = [],
214 realm = "",
215 type = "Basic",
2fa66b0 @klacke cgi support
authored Jul 10, 2009
216 headers = [], %% headers to send on 401
c1cea99 @faal Changed the way authentication is done, added support for multiple au…
faal authored Apr 15, 2009
217 users = [], %% list of {User, Password} tuples
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
218 mod = [], %% authentication module callback
219 pam = false %% should we use pam to auth a user
55c9af7 Changed implementation of multipart form data. There is a new config
Seah Hinde authored Aug 23, 2002
220 }).
21abc5b @klacke Initial revision
authored Feb 11, 2002
221
3dc56a7 @klacke javascript support in ehtml
authored Sep 12, 2002
222
00303e2 @klacke outh record, the outgoing headers are built up into a record now, muc…
authored Nov 21, 2002
223
224 %% this internal record is used and returned by the URL path parser
225
4ad4101 @jonhen Virtual Directory support. ARG record and CGI variable changes
jonhen authored Feb 23, 2007
226
00303e2 @klacke outh record, the outgoing headers are built up into a record now, muc…
authored Nov 21, 2002
227 -record(urltype, {type, %% error | yaws | regular | directory |
4ad4101 @jonhen Virtual Directory support. ARG record and CGI variable changes
jonhen authored Feb 23, 2007
228 %% forbidden | appmod
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
229 finfo,
230 path = [],
231 fullpath = [], %% deep list (WHY?)
232 dir = [], %% relative dir where the path leads to
233 %% flat | unflat need flat for authentication
234 data, %% type-specific e.g: Binary | FileDescriptor
235 %% | DirListing | undefined
236 deflate, %% undefined | Binary | dynamic
237 mime = "text/html", %% MIME type
238 getpath, %% as GET'ed by client
239 pathinfo
240 }).
00303e2 @klacke outh record, the outgoing headers are built up into a record now, muc…
authored Nov 21, 2002
241
242
243
244
245 %% this record is constructed as we build up
246 %% the outgoing headers
247
248 -record(outh, {
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
249 status, %% int status code
00303e2 @klacke outh record, the outgoing headers are built up into a record now, muc…
authored Nov 21, 2002
250
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
251 doclose, %% bool
252 chunked, %% bool
253 encoding=identity,
254 %% identity, deflate
255 contlen, %% integer
256 act_contlen, %% actual content length for dynamic pages
00303e2 @klacke outh record, the outgoing headers are built up into a record now, muc…
authored Nov 21, 2002
257
258
259 %% and the total set of out headers we can have
260 %% as actual strings
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
261 connection,
262 server,
263 location,
264 cache_control,
265 date,
266 allow,
267 last_modified,
268 etag,
269 set_cookie,
270 content_range,
271 content_length,
272 content_type,
273 content_encoding,
274 transfer_encoding,
275 www_authenticate,
276 other %% misc other headers
06a1bef @klacke ""
authored Nov 22, 2002
277 }).
00303e2 @klacke outh record, the outgoing headers are built up into a record now, muc…
authored Nov 21, 2002
278
279
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
280
ef3a52a @klacke Removed the atoms in parse_post and parse query, backwards incompatib…
authored Mar 16, 2004
281 -define(READ_TIMEOUT, 30000).
282
b67bbd8 @klacke Rewrote url splitting (again), and made the redir to index.{html,yaws…
authored May 25, 2004
283
284
285
286 -record(appmodspec, {
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
287 type, %% atom, pair or absolute
288 data}).
b67bbd8 @klacke Rewrote url splitting (again), and made the redir to index.{html,yaws…
authored May 25, 2004
289
31fdaae @klacke pam cleanup, add env record, yaws_ls enhancements by doccarcass@gmail…
authored Feb 14, 2006
290
291 %% as read by application:get_env()
292 -record(env, {debug,
d0caaf6 @klacke tabs cleanup
authored Dec 1, 2007
293 trace,
294 traceoutput,
295 conf,
296 runmod,
297 embedded,
298 id
299 }).
31fdaae @klacke pam cleanup, add env record, yaws_ls enhancements by doccarcass@gmail…
authored Feb 14, 2006
300
9ab391e @klacke warn when crypto app is not there
authored Jul 3, 2009
301 %% Typically used in error printouts as in:
302 %% error_logger:format("Err ~p at ~p~n", [Reason, ?stack()])
303 -define(stack(), try throw(1) catch _:_ -> erlang:get_stacktrace() end).
Something went wrong with that request. Please try again.