It's silly to document constants, switched to 'use constant' to avoid this
Andy Grundman [Tue, 13 Mar 2007 13:48:16 +0000 (13:48 +0000)]
lib/Catalyst/Engine/HTTP.pm

index b8e50e7..b320a3d 100644 (file)
@@ -16,9 +16,8 @@ use IO::Select       ();
 require Catalyst::Engine::HTTP::Restarter;
 require Catalyst::Engine::HTTP::Restarter::Watcher;
 
-sub CHUNKSIZE () { 64 * 1024 }
-
-sub DEBUG () { $ENV{CATALYST_HTTP_DEBUG} || 0 }
+use constant CHUNKSIZE => 64 * 1024;
+use constant DEBUG     => $ENV{CATALYST_HTTP_DEBUG} || 0;
 
 =head1 NAME
 
@@ -511,16 +510,6 @@ sub _socket_data {
 
 sub _inet_addr { unpack "N*", inet_aton( $_[0] ) }
 
-=head1 CONSTANTS
-
-=head2 CHUNKSIZE
-
-How much data to read at once.  This value is set to 64K.
-
-=head2 DEBUG
-
-Enables debugging via the environment variable CATALYST_HTTP_DEBUG.
-
 =head1 SEE ALSO
 
 L<Catalyst>, L<Catalyst::Engine>.