Permalink
Browse files

Changes to arg record, {page, {Options, Page}}, comment on returning a

list of values.


git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@489 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
  • Loading branch information...
1 parent dfc29aa commit 0d99c12177ce6cc7e5f91f12da812da71dfc332f @carsten3347 carsten3347 committed Aug 24, 2003
Showing with 27 additions and 15 deletions.
  1. +27 −15 man/yaws_api.5
View
@@ -43,19 +43,23 @@ We have the following relevant record definitions:
.nf
-record(arg, {
- clisock, %% the socket leading to the peer client
- headers, %% headers
- req, %% request
- clidata, %% The client data (as a binary in POST requests)
- querydata, %% Was the URL on the form of ...?query (GET reqs)
- docroot, %% where's the data
- fullpath, %% full path to yaws file
- cont, %% Continuation for chunked multipart uploads
- state, %% State for use by users of the out/1 callback
- pid, %% pid of the yaws process
- opaque %% useful to pass static data
-
- }).
+ clisock, %% the socket leading to the peer client
+ headers, %% headers
+ req, %% request
+ clidata, %% The client data (as a binary in POST requests)
+ server_path, %% The normalized server path
+ querydata, %% Was the URL on the form of ...?query (GET reqs)
+ appmoddata, %% the remainder of the path leading up to the querey
+ docroot, %% where's the data
+ fullpath, %% full path to yaws file
+ cont, %% Continuation for chunked multipart uploads
+ state, %% State for use by users of the out/1 callback
+ pid, %% pid of the yaws worker process
+ opaque, %% useful to pass static data
+ appmod_prepath, %% path in front of: <appmod><appmoddata>
+ pathinfo %% Set to 'd/e' when calling c.yaws for the request
+ %% http://some.host/a/b/c.yaws/d/e
+ }).
.fi
\fR
@@ -436,11 +440,19 @@ Make Yaws return a different page than the one being
requested.
+.TP
+\fB{page, {Options, Page}}\fR
+Like the above, but supplying an additional deep list of options. For
+now, the only type of option is \fI{header, H}\fR with the effect of
+accumulating the HTTP header \fIH\fR for page \fIPage\fR.
+
.TP
\fB[ListOfValues]\fR
-It is possible to return a list of the above defined
-return values.
+It is possible to return a deep list of the above defined
+return values. Any occurrence of \fIstream_content\fR, \fIget_more\fR
+or \fIpage\fR in this list is legal only if it is the last position of
+the list.

0 comments on commit 0d99c12

Please sign in to comment.