Changeset 11128
- Timestamp:
- 05/05/08 00:48:40 (5 years ago)
- Location:
- lang/perl/HTTP-Engine/trunk/lib/HTTP
- Files:
-
- 2 added
- 7 modified
-
Engine.pm (modified) (1 diff)
-
Engine/Plugin/Interface.pm (modified) (13 diffs)
-
Engine/Plugin/Interface/Adaptor.pm (modified) (1 diff)
-
Engine/Plugin/Interface/FCGI.pm (modified) (1 diff)
-
Engine/Plugin/Interface/ServerSimple.pm (modified) (2 diffs)
-
Engine/Plugin/Interface/Standalone.pm (modified) (2 diffs)
-
Engine/Plugin/Interface/Test.pm (modified) (1 diff)
-
Engine/Role (added)
-
Engine/Role/Interface.pm (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/HTTP-Engine/trunk/lib/HTTP/Engine.pm
r10858 r11128 15 15 use HTTP::Engine::Response; 16 16 17 __PACKAGE__->load_components(qw/Plaggerize Autocall::InjectMethod/);17 __PACKAGE__->load_components(qw/Plaggerize Moosenize Autocall::InjectMethod/); 18 18 19 19 sub new { -
lang/perl/HTTP-Engine/trunk/lib/HTTP/Engine/Plugin/Interface.pm
r10816 r11128 2 2 use strict; 3 3 use warnings; 4 use base qw( HTTP::Engine::Plugin Class::Accessor::Fast );4 use base qw( HTTP::Engine::Plugin HTTP::Engine::Role::Interface Class::Accessor::Fast ); 5 5 __PACKAGE__->mk_accessors(qw/ read_position read_length /); 6 6 … … 17 17 use HTTP::Engine::Request::Upload; 18 18 19 19 20 sub initialize :Hook { 20 21 my($self, $c) = @_; … … 23 24 } 24 25 25 sub prepare_connection :InterfaceMethod{26 sub prepare_connection { 26 27 my($self, $c) = @_; 27 28 … … 37 38 } 38 39 39 sub prepare_query_parameters :InterfaceMethod{40 sub prepare_query_parameters { 40 41 my($self, $c) = @_; 41 42 my $query_string = $c->env->{QUERY_STRING}; … … 52 53 } 53 54 54 sub prepare_headers :InterfaceMethod{55 sub prepare_headers { 55 56 my($self, $c) = @_; 56 57 … … 63 64 } 64 65 65 sub prepare_cookie :InterfaceMethod{66 sub prepare_cookie { 66 67 my($self, $c) = @_; 67 68 … … 71 72 } 72 73 73 sub prepare_path :InterfaceMethod{74 sub prepare_path { 74 75 my($self, $c) = @_; 75 76 … … 108 109 } 109 110 110 sub prepare_body :InterfaceMethod{111 sub prepare_body { 111 112 my($self, $c) = @_; 112 113 … … 141 142 } 142 143 143 sub prepare_body_parameters :InterfaceMethod{144 sub prepare_body_parameters { 144 145 my($self, $c) = @_; 145 146 $c->req->body_parameters($c->req->{_body}->param); 146 147 } 147 148 148 sub prepare_parameters :InterfaceMethod{149 sub prepare_parameters { 149 150 my($self, $c) = @_; 150 151 … … 173 174 } 174 175 175 sub prepare_uploads :InterfaceMethod{176 sub prepare_uploads { 176 177 my($self, $c) = @_; 177 178 … … 201 202 202 203 # output 203 sub finalize_cookies :InterfaceMethod{204 sub finalize_cookies { 204 205 my($self, $c) = @_; 205 206 … … 223 224 } 224 225 225 sub finalize_output_headers :InterfaceMethod{226 sub finalize_output_headers { 226 227 my($self, $c) = @_; 227 228 … … 231 232 } 232 233 233 sub finalize_output_body :InterfaceMethod{234 sub finalize_output_body { 234 235 my($self, $c) = @_; 235 236 my $body = $c->res->body; -
lang/perl/HTTP-Engine/trunk/lib/HTTP/Engine/Plugin/Interface/Adaptor.pm
r10473 r11128 11 11 } 12 12 13 sub run : Method{ $_[0]->adaptee->run(@_) }13 sub run { $_[0]->adaptee->run(@_) } 14 14 15 sub prepare_request : InterfaceMethod{ $_[0]->adaptee->prepare_request(@_) }16 sub prepare_connection : InterfaceMethod{ $_[0]->adaptee->prepare_connection(@_) }17 sub prepare_query_parameters : InterfaceMethod{ $_[0]->adaptee->prepare_query_parameters(@_) }18 sub prepare_headers : InterfaceMethod{ $_[0]->adaptee->prepare_headers(@_) }19 sub prepare_cookie : InterfaceMethod{ $_[0]->adaptee->prepare_cookie(@_) }20 sub prepare_path : InterfaceMethod{ $_[0]->adaptee->prepare_path(@_) }21 sub prepare_body : InterfaceMethod{ $_[0]->adaptee->prepare_body(@_) }22 sub prepare_body_parameters : InterfaceMethod{ $_[0]->adaptee->prepare_body_parameters(@_) }23 sub prepare_parameters : InterfaceMethod{ $_[0]->adaptee->prepare_parameters(@_) }24 sub prepare_uploads : InterfaceMethod{ $_[0]->adaptee->prepare_uploads(@_) }15 sub prepare_request { $_[0]->adaptee->prepare_request(@_) } 16 sub prepare_connection { $_[0]->adaptee->prepare_connection(@_) } 17 sub prepare_query_parameters { $_[0]->adaptee->prepare_query_parameters(@_) } 18 sub prepare_headers { $_[0]->adaptee->prepare_headers(@_) } 19 sub prepare_cookie { $_[0]->adaptee->prepare_cookie(@_) } 20 sub prepare_path { $_[0]->adaptee->prepare_path(@_) } 21 sub prepare_body { $_[0]->adaptee->prepare_body(@_) } 22 sub prepare_body_parameters { $_[0]->adaptee->prepare_body_parameters(@_) } 23 sub prepare_parameters { $_[0]->adaptee->prepare_parameters(@_) } 24 sub prepare_uploads { $_[0]->adaptee->prepare_uploads(@_) } 25 25 26 sub finalize_cookies : InterfaceMethod{ $_[0]->adaptee->finalize_cookies(@_) }27 sub finalize_output_headers : InterfaceMethod{ $_[0]->adaptee->finalize_output_headers(@_) }28 sub finalize_output_body : InterfaceMethod{ $_[0]->adaptee->finalize_output_body(@_) }26 sub finalize_cookies { $_[0]->adaptee->finalize_cookies(@_) } 27 sub finalize_output_headers { $_[0]->adaptee->finalize_output_headers(@_) } 28 sub finalize_output_body { $_[0]->adaptee->finalize_output_body(@_) } 29 29 30 30 1; -
lang/perl/HTTP-Engine/trunk/lib/HTTP/Engine/Plugin/Interface/FCGI.pm
r10501 r11128 7 7 use FCGI; 8 8 9 sub run :Method{9 sub run { 10 10 my ( $self, $class, $listen, ) = @_; 11 11 -
lang/perl/HTTP-Engine/trunk/lib/HTTP/Engine/Plugin/Interface/ServerSimple.pm
r10762 r11128 5 5 use HTTP::Server::Simple 0.33; 6 6 7 sub run : Method{7 sub run { 8 8 my ($self, $c) = @_; 9 9 my $port = $self->config->{port} || '80'; … … 14 14 } 15 15 16 sub finalize_output_headers : InterfaceMethod{16 sub finalize_output_headers { 17 17 my ( $self, $c ) = @_; 18 18 -
lang/perl/HTTP-Engine/trunk/lib/HTTP/Engine/Plugin/Interface/Standalone.pm
r10762 r11128 35 35 } 36 36 37 sub finalize_output_headers :InterfaceMethod{37 sub finalize_output_headers { 38 38 my($self, $c) = @_; 39 39 … … 48 48 } 49 49 50 sub run :Method{50 sub run { 51 51 my($self, $c) = @_; 52 52 my $host = $self->config->{host} || ''; -
lang/perl/HTTP-Engine/trunk/lib/HTTP/Engine/Plugin/Interface/Test.pm
r10552 r11128 6 6 use HTTP::Request::AsCGI; 7 7 8 sub run :Method{8 sub run { 9 9 my($senf, $c, $request, $env) = @_; 10 10 $env ||= \%ENV;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)