Changeset 26174
- Timestamp:
- 12/09/08 12:49:18 (4 years ago)
- Location:
- lang/perl/HTTP-Engine/trunk
- Files:
-
- 3 added
- 1 removed
- 7 modified
-
Makefile.PL (modified) (2 diffs)
-
lib/HTTP/Engine.pm (modified) (1 diff)
-
lib/HTTP/Engine/MinimalCGI.pm (added)
-
lib/HTTP/Engine/Request.pm (modified) (1 diff)
-
lib/HTTP/Engine/Request/Upload.pm (modified) (2 diffs)
-
lib/HTTP/Engine/ResponseFinalizer.pm (modified) (2 diffs)
-
lib/HTTP/Engine/Role/RequestBuilder/HTTPBody.pm (modified) (2 diffs)
-
lib/HTTP/Engine/Role/RequestBuilder/Standard.pm (modified) (2 diffs)
-
lib/HTTP/Engine/Util.pm (deleted)
-
t/040_minimal (added)
-
t/040_minimal/001_simple.t (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/HTTP-Engine/trunk/Makefile.PL
r26155 r26174 45 45 requires 'HTTP::Server::Simple' => 0.35; 46 46 47 requires 'Test::Base' => 0;48 49 47 features( 50 48 'Interface::FCGI' => [ … … 84 82 } 85 83 84 build_requires 'YAML'; # Test::Base requires this 86 85 build_requires 'Test::More'; 87 86 build_requires 'IO::Scalar'; -
lang/perl/HTTP-Engine/trunk/lib/HTTP/Engine.pm
r26155 r26174 7 7 use HTTP::Engine::Response; 8 8 use HTTP::Engine::Types::Core qw( Interface ); 9 use HTTP::Engine::Util;10 9 11 10 has 'interface' => ( -
lang/perl/HTTP-Engine/trunk/lib/HTTP/Engine/Request.pm
r26155 r26174 325 325 sub as_http_request { 326 326 my $self = shift; 327 HTTP::Engine::Util::require_once('HTTP/Request.pm');327 require 'HTTP/Request.pm'; 328 328 HTTP::Request->new( $self->method, $self->uri, $self->headers, $self->raw_body ); 329 329 } -
lang/perl/HTTP-Engine/trunk/lib/HTTP/Engine/Request/Upload.pm
r26155 r26174 21 21 default => sub { 22 22 my $self = shift; 23 HTTP::Engine::Util::require_once('File/Spec/Unix.pm');23 require File::Spec::Unix; 24 24 my $basename = $self->filename; 25 25 $basename =~ s|\\|/|g; … … 43 43 sub copy_to { 44 44 my $self = shift; 45 HTTP::Engine::Util::require_once('File/Copy.pm');45 require File::Copy; 46 46 File::Copy::copy( $self->tempname, @_ ); 47 47 } -
lang/perl/HTTP-Engine/trunk/lib/HTTP/Engine/ResponseFinalizer.pm
r26155 r26174 4 4 use Scalar::Util (); 5 5 use Carp (); 6 use CGI::Simple::Cookie; 6 7 7 8 sub finalize { … … 55 56 my @keys = keys %$cookies; 56 57 if (@keys) { 57 HTTP::Engine::Util::require_once('CGI/Simple/Cookie.pm');58 59 58 for my $name (@keys) { 60 59 my $val = $cookies->{$name}; -
lang/perl/HTTP-Engine/trunk/lib/HTTP/Engine/Role/RequestBuilder/HTTPBody.pm
r26155 r26174 7 7 HTTP::Engine::Role::RequestBuilder::ReadBody 8 8 ); 9 use HTTP::Body; 9 10 10 11 # tempolary file path for upload file. … … 42 43 my $type = $req->header('Content-Type'); 43 44 44 HTTP::Engine::Util::require_once('HTTP/Body.pm');45 45 my $body = HTTP::Body->new($type, $length); 46 46 $body->tmpdir( $self->upload_tmp) if $self->upload_tmp; -
lang/perl/HTTP-Engine/trunk/lib/HTTP/Engine/Role/RequestBuilder/Standard.pm
r26155 r26174 5 5 6 6 with qw(HTTP::Engine::Role::RequestBuilder); 7 use CGI::Simple::Cookie (); 7 8 8 9 sub _build_cookies { … … 10 11 11 12 if (my $header = $req->header('Cookie')) { 12 HTTP::Engine::Util::require_once('CGI/Simple/Cookie.pm');13 13 return { CGI::Simple::Cookie->parse($header) }; 14 14 } else {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)