Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 93 lines (73 sloc) 2.091 kb
21abc5b @klacke Initial revision
authored
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 %%%----------------------------------------------------------------------
7
8 -author('klacke@hyber.org').
9
10
11 -record(arg, {
12 clisock, %% the socket leading to the peer client
d69e4d8 @klacke ""
authored
13 headers, %% headers
21abc5b @klacke Initial revision
authored
14 req, %% request
15 clidata, %% The client data (as a binary in POST requests)
a93daef Added the field server_path, which will store the parsed and normalized ...
Leon Smith authored
16 server_path, %% The normalized server path
38fb85e @klacke ""
authored
17 querydata, %% Was the URL on the form of ...?query (GET reqs)
0d6e5ea @klacke fixed tilde username expansion it didn't work, also made thta a configur...
authored
18 appmoddata, %% the remainder of the path leading up to the querey
87dd611 Added fullpath to arg
Johan Bevemyr authored
19 docroot, %% where's the data
c48d2b4 added cont and state to this yaws_api.hrl
Seah Hinde authored
20 fullpath, %% full path to yaws file
21 cont, %% Continuation for chunked multipart uploads
1686c86 @klacke support for streamed large content from yaws code
authored
22 state, %% State for use by users of the out/1 callback
814eb04 @klacke ""
authored
23 pid, %% pid of the yaws worker process
24c5274 Added #args.appmod_prepath which contains the path in front
Tobbe Tornquist authored
24 opaque, %% useful to pass static data
6b289a9 @carsten3347 Added CGI and PHP support.
carsten3347 authored
25 appmod_prepath, %% path in front of: <appmod><appmoddata>
ddd0f0c @carsten3347 comment to arg record field `pathinfo'
carsten3347 authored
26 pathinfo %% Set to 'd/e' when calling c.yaws for the request
27 %% http://some.host/a/b/c.yaws/d/e
21abc5b @klacke Initial revision
authored
28 }).
29
30
31 -record(http_request, {method,
32 path,
33 version}).
34
8e69e2c @klacke first almost working vsn of revproxy
authored
35 -record(http_response, {version,
36 status,
37 phrase}).
38
21abc5b @klacke Initial revision
authored
39 -record(headers, {
40 connection,
41 accept,
42 host,
43 if_modified_since,
44 if_match,
45 if_none_match,
46 if_range,
47 if_unmodified_since,
48 range,
49 referer,
50 user_agent,
51 accept_ranges,
52 cookie = [],
53 keep_alive,
8e69e2c @klacke first almost working vsn of revproxy
authored
54 location,
dc6fcd9 @klacke ""
authored
55 content_length,
86b7d16 @klacke made backwards incompatible change to parse_post_data
authored
56 content_type,
dc6fcd9 @klacke ""
authored
57 authorization,
8e69e2c @klacke first almost working vsn of revproxy
authored
58 transfer_encoding,
dc6fcd9 @klacke ""
authored
59 other = [] %% misc other headers
60 }).
21abc5b @klacke Initial revision
authored
61
62
63
64
8da2b3a @klacke parse_url
authored
65 -record(url,
66 {scheme,
67 host,
68 port, %% undefined means not set
69 path = [],
70 querypart = []}).
a1b8e0c Added set cookie parser
Johan Bevemyr authored
71
72
73 -record(setcookie,{
74 key,
75 value,
76 quoted,
77 comment,
78 comment_url,
79 discard,
80 domain,
81 max_age,
82 expires,
83 path,
84 port,
85 secure,
86 version}).
87
dbab7a3 @klacke ssi include with var expansion + docs
authored
88
b2d5a00 @klacke postvar(), queryvar(), ssi docs
authored
89
90
dbab7a3 @klacke ssi include with var expansion + docs
authored
91
92
Something went wrong with that request. Please try again.