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').
12 clisock
, %% the socket leading to the peer client
13 client_ip_port
, %% {ClientIp, ClientPort} tuple
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
32 -record(http_request
, {method
,
36 -record(http_response
, {version
,
61 other
= [] %% misc other headers
70 port
, %% undefined means not set