Changeset 17400
- Timestamp:
- 08/11/08 16:15:34 (5 years ago)
- Location:
- lang/perl/HTTP-Engine/trunk/examples
- Files:
-
- 3 modified
-
lighty/test_fastcgi.pl (modified) (1 diff)
-
poe-dumper.pl (modified) (3 diffs)
-
yamlconfig-dumper.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/HTTP-Engine/trunk/examples/lighty/test_fastcgi.pl
r11771 r17400 22 22 }, 23 23 request_handler => sub { 24 my $ c= shift;24 my $req = shift; 25 25 26 $c->res->content_type('text/html'); 27 28 $c->res->body( render_body( Dumper($c->req) ) ); 26 my $res = HTTP::Engine::Response->new; 27 $res->content_type('text/html'); 28 $res->body( render_body( Dumper($req) ) ); 29 $res; 29 30 } 30 31 }, -
lang/perl/HTTP-Engine/trunk/examples/poe-dumper.pl
r11826 r17400 7 7 use HTTP::Response; 8 8 use HTTP::Engine::Request; 9 use HTTP::MobileAttribute;10 9 use String::TT qw/strip tt/; 11 10 … … 14 13 port => 3999, 15 14 request_handler => sub { 16 my $ c= shift;15 my $req = shift; 17 16 local $Data::Dumper::Sortkeys = 1; 18 my $req_dump = Dumper( $ c->req );19 my $raw = $ c->req->raw_body;17 my $req_dump = Dumper( $req ); 18 my $raw = $req->raw_body; 20 19 my $body = strip tt q{ 21 20 <form method="post"> … … 33 32 }; 34 33 35 $c->res->body($body);34 HTTP::Engine::Response->new( body => $body ); 36 35 }, 37 36 }), -
lang/perl/HTTP-Engine/trunk/examples/yamlconfig-dumper.pl
r11805 r17400 17 17 18 18 sub handler { 19 my $ c= shift;19 my $req = shift; 20 20 local $Data::Dumper::Sortkeys = 1; 21 my $req_dump = Dumper( $ c->req );22 my $raw = $ c->req->raw_body;21 my $req_dump = Dumper( $req ); 22 my $raw = $req->raw_body; 23 23 my $body = strip tt q{ 24 24 <form method="post"> … … 36 36 }; 37 37 38 $c->res->body($body);38 HTTP::Engine::Response->new( body => $body ); 39 39 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)