Roxen.git
/
server
/
plugins
/
protocols
/
http.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/plugins/protocols/http.pike:1:
// This is a ChiliMoon protocol module. // Modified by Francesco Chemolli to add throttling capabilities. // Copyright © 1996 - 2001, Roxen IS.
-
constant cvs_version = "$Id: http.pike,v 1.
387
2002/10/
24
00
:
17
:
43
nilsson Exp $";
+
constant cvs_version = "$Id: http.pike,v 1.
388
2002/10/
25
20
:
04
:
37
nilsson Exp $";
// #define REQUEST_DEBUG #define MAGIC_ERROR // HTTP protocol module. #include <config.h> #define TIMER_PREFIX "http:" #include <timers.h> inherit RequestID;
Roxen.git/server/plugins/protocols/http.pike:116:
if( u = conf->authenticate( this_object() ) ) return 0; if( realauth ) return ((realauth/":")[1..])*":"; } } int `!( ) { return !realauth; }
+
string _sprintf() { return "AuthEmulator"; }
} AuthEmulator auth; string charset_name( function|string what ) { switch( f ) { case string_to_unicode: return "ISO10646-1"; case string_to_utf8: return "UTF-8";
Roxen.git/server/plugins/protocols/http.pike:476:
} else q=reverse(qualities); sort(q,s,u); languages=reverse(s); qualities=reverse(q); subtags=reverse(u); sorted=1; }
+
+
string _sprintf() { return sprintf("PrefLanguages(%O)", languages); }
} class CacheKey { #if ID_CACHEKEY_DEBUG constant __num = ({ 0 }); int _num; string _sprintf() { return "CacheKey(#" + _num + ")"; } void create() { _num = ++__num[0]; } void destroy() { werror("CacheKey(#" + _num + "): --DESTROY--\n" "%s\n\n", "" || describe_backtrace(backtrace())); }
Roxen.git/server/plugins/protocols/http.pike:1420:
case "set_nonblocking": return 0; case "query_fd": return lambda() { return -1; }; default: return file[what]; } }
+
+
string _sprintf() { return "MultiRangeWrapper"; }
} // Parse the range header into multiple ranges. array parse_range_header(int len) { array ranges = ({}); foreach(misc->range / ",", string range) { int r1, r2;