Changeset 11800
- Timestamp:
- 05/18/08 00:26:28 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/HTTP-Engine/trunk/lib/HTTP/Engine/Interface/ServerSimple.pm
r11686 r11800 5 5 use HTTP::Server::Simple 0.33; 6 6 use HTTP::Server::Simple::CGI; 7 8 has host => ( 9 is => 'rw', 10 isa => 'Str', 11 default => '127.0.0.1', 12 ); 7 13 8 14 has port => ( … … 15 21 my ($self, ) = @_; 16 22 17 Moose::Meta::Class23 my $server = Moose::Meta::Class 18 24 ->create_anon_class( 19 25 superclasses => ['HTTP::Server::Simple::CGI'], … … 27 33 )->new( 28 34 $self->port 29 )->run; 35 ); 36 $server->host($self->host); 37 $server->run; 30 38 } 31 39
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)