86903b2003-01-23Martin Nilsson // This is a ChiliMoon protocol module.
50c4c42001-08-23Martin Nilsson // Copyright © 2001, Roxen IS.
0d0e952000-11-13Per Hedbor inherit Protocol; constant supports_ipless = 1; constant name = "http";
a9fa0d2001-07-21Martin Stjernholm constant prot_name = "http";
3250252002-06-14Martin Nilsson constant requesthandlerfile = "plugins/protocols/http.pike";
0d0e952000-11-13Per Hedbor constant default_port = 80; int set_cookie, set_cookie_only_once;
9c19002001-02-27Per Hedbor int minimum_byterate;
0d0e952000-11-13Per Hedbor  void fix_cvars( Variable.Variable a ) { set_cookie = query( "set_cookie" ); set_cookie_only_once = query( "set_cookie_only_once" );
a087f02001-08-20Per Hedbor  minimum_byterate = query( "minimum_bitrate" ) / 8;
0d0e952000-11-13Per Hedbor } void create( mixed ... args ) {
f9531d2004-04-04Martin Nilsson  core.set_up_http_variables( this );
9c19002001-02-27Per Hedbor  variables[ "set_cookie" ]->set_changed_callback( fix_cvars ); variables[ "set_cookie_only_once" ]->set_changed_callback( fix_cvars ); variables[ "minimum_bitrate" ]->set_changed_callback( fix_cvars );
0d0e952000-11-13Per Hedbor  fix_cvars(0); ::create( @args ); }