1SCGI.scgiPage(3kaya)         Kaya module reference        SCGI.scgiPage(3kaya)
2
3
4

NAME

6       SCGI::scgiPage - Displays a function result
7

SYNOPSIS

9       Void  scgiPage(  Socket  comm, Void(Socket) fn, [Pair<String, String> ]
10       headers )
11

ARGUMENTS

13       comm The SCGI program's data output socket. All output data  should  be
14       written to this socket.
15
16       fn  A  Void function taking a socket, that uses Sockets.send (3kaya) to
17       output the data.
18
19       headers A list of key-value pairs of HTTP headers
20

DESCRIPTION

22       Displays a function result. The scgiPage functions are called automatiā€
23       cally  by a SCGI webapp based on the return value of webmain and should
24       only be called directly for debugging purposes  and  when  constructing
25       custom scgiPage functions.
26
27       This function may be useful for output of very large amounts of content
28       where reading the entire content into a string or binary  block  before
29       printing it is not practical.
30

AUTHORS

32       Kaya   standard  library  by  Edwin  Brady,  Chris  Morris  and  others
33       (kaya@kayalang.org). For further information see http://kayalang.org/
34

LICENSE

36       The Kaya standard library is free software;  you  can  redistribute  it
37       and/or  modify  it  under  the  terms  of the GNU Lesser General Public
38       License (version 2.1 or any later version) as  published  by  the  Free
39       Software Foundation.
40
42       SCGI.scgiPage (3kaya) (HTML documents)
43       SCGI.scgiPage_1 (3kaya) (string data)
44       SCGI.scgiPage_2 (3kaya) (binary data)
45
46
47
48Kaya                             December 2010            SCGI.scgiPage(3kaya)
Impressum