updated manifest, added rake task to generate it
[fuzed.git] / yaws_includes / yaws_api.hrl
blob3b50f8416233570bc57823a98e95049e6f74c312
1 %%%----------------------------------------------------------------------
2 %%% File : yaws_api.hrl
3 %%% Author : Claes Wikstrom <klacke@hyber.org>
4 %%% Purpose :
5 %%% Created : 24 Jan 2002 by Claes Wikstrom <klacke@hyber.org>
6 %%%----------------------------------------------------------------------
8 -author('klacke@hyber.org').
11 -record(arg, {
12 clisock, %% the socket leading to the peer client
13 client_ip_port, %% {ClientIp, ClientPort} tuple
14 headers, %% headers
15 req, %% request
16 clidata, %% The client data (as a binary in POST requests)
17 server_path, %% The normalized server path
18 querydata, %% Was the URL on the form of ...?query (GET reqs)
19 appmoddata, %% the remainder of the path leading up to the query
20 docroot, %% where's the data
21 fullpath, %% full deep path to yaws file
22 cont, %% Continuation for chunked multipart uploads
23 state, %% State for use by users of the out/1 callback
24 pid, %% pid of the yaws worker process
25 opaque, %% useful to pass static data
26 appmod_prepath, %% path in front of: <appmod><appmoddata>
27 pathinfo %% Set to 'd/e' when calling c.yaws for the request
28 %% http://some.host/a/b/c.yaws/d/e
29 }).
32 -record(http_request, {method,
33 path,
34 version}).
36 -record(http_response, {version,
37 status,
38 phrase}).
40 -record(headers, {
41 connection,
42 accept,
43 host,
44 if_modified_since,
45 if_match,
46 if_none_match,
47 if_range,
48 if_unmodified_since,
49 range,
50 referer,
51 user_agent,
52 accept_ranges,
53 cookie = [],
54 keep_alive,
55 location,
56 content_length,
57 content_type,
58 content_encoding,
59 authorization,
60 transfer_encoding,
61 other = [] %% misc other headers
62 }).
67 -record(url,
68 {scheme,
69 host,
70 port, %% undefined means not set
71 path = [],
72 querypart = []}).
75 -record(setcookie,{
76 key,
77 value,
78 quoted,
79 comment,
80 comment_url,
81 discard,
82 domain,
83 max_age,
84 expires,
85 path,
86 port,
87 secure,
88 version}).