Changeset 11007 for lang/perl/HTTP-Engine
- Timestamp:
- 05/03/08 13:36:54 (5 years ago)
- Location:
- lang/perl/HTTP-Engine/branches/moose/lib/HTTP/Engine
- Files:
-
- 3 modified
-
Interface/CGI.pm (modified) (1 diff)
-
Interface/ServerSimple.pm (modified) (2 diffs)
-
Role/Interface.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/HTTP-Engine/branches/moose/lib/HTTP/Engine/Interface/CGI.pm
r11002 r11007 2 2 use Moose; 3 3 with 'HTTP::Engine::Role::Interface'; 4 5 has request_processor => ( 6 is => 'ro', 7 isa => 'HTTP::Engine::RequestProcessor', 8 lazy => 1, 9 default => sub { 10 my $self = shift; 11 HTTP::Engine::RequestProcessor->new( 12 handler => $self->handler, 13 should_write_response_line => 0, 14 ); 15 }, 16 handles => [qw/handle_request/], 17 ); 4 use constant should_write_response_line => 0; 18 5 19 6 sub run { -
lang/perl/HTTP-Engine/branches/moose/lib/HTTP/Engine/Interface/ServerSimple.pm
r10998 r11007 2 2 use Moose; 3 3 with 'HTTP::Engine::Role::Interface'; 4 4 use constant should_write_response_line => 1; 5 5 use HTTP::Server::Simple 0.33; 6 6 use HTTP::Server::Simple::CGI; 7 use HTTP::Request;8 7 9 8 has port => ( … … 11 10 isa => 'Int', 12 11 default => 80, 13 );14 15 has request_processor => (16 is => 'ro',17 isa => 'HTTP::Engine::RequestProcessor',18 lazy => 1,19 default => sub {20 my $self = shift;21 HTTP::Engine::RequestProcessor->new(22 handler => $self->handler,23 should_write_response_line => 1,24 );25 },26 handles => [qw/handle_request/],27 12 ); 28 13 -
lang/perl/HTTP-Engine/branches/moose/lib/HTTP/Engine/Role/Interface.pm
r10987 r11007 4 4 with 'MooseX::Object::Pluggable'; 5 5 6 requires qw(run );6 requires qw(run should_write_response_line); 7 7 8 8 has handler => ( … … 10 10 isa => 'CodeRef', 11 11 required => 1, 12 ); 13 14 has request_processor => ( 15 is => 'ro', 16 isa => 'HTTP::Engine::RequestProcessor', 17 lazy => 1, 18 default => sub { 19 my $self = shift; 20 HTTP::Engine::RequestProcessor->new( 21 handler => $self->handler, 22 should_write_response_line => $self->should_write_response_line, 23 ); 24 }, 25 handles => [qw/handle_request/], 12 26 ); 13 27
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)