Roxen.git/
server/
etc/
modules/
Roxen.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2000-08-31
2000-08-31 20:52:59 by Per Hedbor <ph@opera.com>
a4564727d07db3da488a91a8dfe6423fc46cdfff (
13
lines) (+
11
/-
2
)
[
Show
|
Annotate
]
Branch:
5.2
Added add_cache_callback
Rev: server/etc/modules/Roxen.pmod:1.34
1:
/*
-
* $Id: Roxen.pmod,v 1.
33
2000/08/
27
14
:
27
:
16
mast
Exp $
+
* $Id: Roxen.pmod,v 1.
34
2000/08/
31
20
:
52
:
59
per
Exp $
* * Various helper functions. * * Henrik Grubbström 1999-05-03 */
-
+
#include <config.h> inherit "roxenlib";
1040:
return parse_since(date)[0]||-1; }
+
void add_cache_callback( RequestID id, function(RequestID:int) callback )
+
//! The request id object is not yet fully initialized in this callback.
+
//! The only valid fields are raw_url and request_headers.
+
{
+
while( id->misc->orig )
+
id = id->misc->orig;
+
id->misc->_cachecallbacks |= ({ callback });
+
}
+
string get_server_url(object c) { string url=c->query("MyWorldLocation"); if(stringp(url) && sizeof(url)) return url;