1HTMLDocument.addHTTPHeader(3kaKyaay)a module referHeTnMcLeDocument.addHTTPHeader(3kaya)
2
3
4

NAME

6       HTMLDocument::addHTTPHeader - Adds a HTTP header to the document
7

SYNOPSIS

9       Void addHTTPHeader( HTMLDocument doc, Pair<String, String>  header )
10

ARGUMENTS

12       doc The HTML document
13
14       header A pair of Strings describing the header
15

DESCRIPTION

17       Adds  a  HTTP  header  to the document. If the document is then printed
18       using Webapp.displayPage (3kaya) , these headers will be  sent  to  the
19       client.
20
21       The  effects  of  multiple  HTTP  headers with the same name vary. Some
22       headers may be rewritten by the web  server  if  they  appear  multiple
23       times.
24
25       You  can  change  the HTTP status code using the special Status header.
26       The default is 200, of course - due to  a  bug  in  older  versions  of
27       Apache,  explicitly  setting  a  200 status is not recommended. Headers
28       with names beginning "X-" are non-standard and could mean anything.
29
30
31    addHTTPHeader(doc,setCookie("session",getSessionId()));
32
33       The characters allowed in HTTP headers are relatively restricted, espe‐
34       cially  in the name field, the most obvious restriction being that they
35       may not contain new lines.  Webapp.displayPage (3kaya)  will  throw  an
36       Exception  if  illegal  characters are found - be sure to check this if
37       you write your own header output function.
38
39       RFC 2616 ⟨http://www.w3.org/Protocols/rfc2616/⟩ describes the HTTP pro‐
40       tocol including HTTP headers in detail
41
42       You  may  set  multiple headers with the same name, but this may not be
43       sensible for some headers (for example, multiple Status headers make no
44       sense, whereas multiple Set-Cookie headers are commonly used).
45

AUTHORS

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

LICENSE

51       The Kaya standard library is free software;  you  can  redistribute  it
52       and/or  modify  it  under  the  terms  of the GNU Lesser General Public
53       License (version 2.1 or any later version) as  published  by  the  Free
54       Software Foundation.
55
57       HTMLDocument.HTMLDocument (3kaya)
58       HTMLDocument.addHTTPHeader_1 (3kaya)
59       Webapp.displayPage (3kaya)
60       WebCommon.setCookie (3kaya)
61
62
63
64Kaya                             December 2010HTMLDocument.addHTTPHeader(3kaya)
Impressum