1 %%%----------------------------------------------------------------------
2 %%% File : yaws_api.hrl
3 %%% Author : Claes Wikstrom <klacke@hyber.org>
5 %%% Created : 24 Jan 2002 by Claes Wikstrom <klacke@hyber.org>
6 %%%----------------------------------------------------------------------
8 -author('klacke@hyber.org').
11 clisock
, %% the socket leading to the peer client
12 client_ip_port
, %% {ClientIp, ClientPort} tuple
15 clidata
, %% The client data (as a binary in POST requests)
16 server_path
, %% The normalized server path (pre-querystring part of URI)
17 querydata
, %% For URIs of the form ...?querydata
18 %% equiv of cgi QUERY_STRING
19 appmoddata
, %% (deprecated - use pathinfo instead) the remainder of the path leading up to the query
20 docroot
, %% Physical base location of data for this request
21 docroot_mount
, %% virtual directory e.g /myapp/ that the docroot refers to.
22 fullpath
, %% full deep path to yaws file
23 cont
, %% Continuation for chunked multipart uploads
24 state
, %% State for use by users of the out/1 callback
25 pid, %% pid of the yaws worker process
26 opaque
, %% useful to pass static data
27 appmod_prepath
, %% (deprecated - use prepath instead) path in front of: <appmod><appmoddata>
28 prepath
, %% Path prior to 'dynamic' segment of URI.
29 %% ie http://some.host/<prepath>/<script-point>/d/e
30 %% where <script-point> is an appmod mount point, or .yaws,.php,.cgi etc script file.
31 pathinfo
%% Set to '/d/e' when calling c.yaws for the request http://some.host/a/b/c.yaws/d/e
32 %% equiv of cgi PATH_INFO
36 -record(http_request
, {method
,
40 -record(http_response
, {version
,
65 other
= [] %% misc other headers
74 port
, %% undefined means not set