1Webapp.displayPage(3kaya)    Kaya module reference   Webapp.displayPage(3kaya)
2
3
4

NAME

6       Webapp::displayPage - Displays a function result
7

SYNOPSIS

9       Void displayPage( Void() fn, [Pair<String, String> ] headers )
10

ARGUMENTS

12       fn  A  Void  function  taking  no parameters that prints the content to
13       standard output.
14
15       headers A list of key-value pairs of HTTP headers
16

DESCRIPTION

18       Displays a function result. The displayPage functions are called  auto‐
19       matically  by  a webapp based on the return value of webmain and should
20       only be called directly for debugging purposes  and  when  constructing
21       custom displayPage functions.
22
23       This function may be useful for output of very large amounts of content
24       where reading the entire content into a string or binary  block  before
25       printing it is not practical.
26

AUTHORS

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

LICENSE

32       The Kaya standard library is free software;  you  can  redistribute  it
33       and/or  modify  it  under  the  terms  of the GNU Lesser General Public
34       License (version 2.1 or any later version) as  published  by  the  Free
35       Software Foundation.
36
38       Webapp.displayPage (3kaya) (HTML documents)
39       Webapp.displayPage_1 (3kaya) (string data)
40       Webapp.displayPage_2 (3kaya) (binary data)
41
42
43
44Kaya                             December 2010       Webapp.displayPage(3kaya)
Impressum