Roxen.git
/
server
/
modules
/
examples
/
filter.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/modules/examples/filter.pike:1:
inherit "module"; // All roxen modules must inherit module.pike
-
constant cvs_version = "$Id: filter.pike,v 1.
1
2000
/
07
/
20
15
:
03
:
52
jhs
Exp $";
+
constant cvs_version = "$Id: filter.pike,v 1.
2
2001
/
08
/
31
11
:
19
:
02
grubba
Exp $";
constant module_type = MODULE_FILTER; constant module_name = "RefDoc for MODULE_FILTER"; constant module_doc = "This module does nothing, but its inlined " "documentation gets imported into the roxen " "programmer manual. You hardly want to add " "this module to your virtual servers."; mapping last_seen; int handled; int seen; mapping|void filter(mapping|void result, RequestID id)
-
//! The
<pi>
filter()
</pi>
method is called for all files just before the
+
//! The
@[
filter()
]
method is called for all files just before the
//! final resulting page is sent back to the browser. In effect, filter //! modules are essentially MODULE_LAST modules that get called for all //! requests, not only failed requests. The result parameter is either a //! zero (for an unhandled request) or a standard <ref>result //! mapping</ref>, as returned by any previous modules in the server. //! The id argument, as usual, is the request information object //! associated with the request. //! //! The returned value is either zero, here signifying that you didn't //! rewrite or in any way alter the result mapping, or a new or changed