You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-cvs@httpd.apache.org by jo...@apache.org on 2005/03/13 21:31:43 UTC

svn commit: r157353 - in httpd/apreq/branches/multi-env-unstable/glue/perl: README lib/Apache2/Cookie.pm

Author: joes
Date: Sun Mar 13 12:31:40 2005
New Revision: 157353

URL: http://svn.apache.org/viewcvs?view=rev&rev=157353
Log:
Add $jar->status, note the 2.04-dev deltas in the perl api.


Modified:
    httpd/apreq/branches/multi-env-unstable/glue/perl/README
    httpd/apreq/branches/multi-env-unstable/glue/perl/lib/Apache2/Cookie.pm

Modified: httpd/apreq/branches/multi-env-unstable/glue/perl/README
URL: http://svn.apache.org/viewcvs/httpd/apreq/branches/multi-env-unstable/glue/perl/README?view=diff&r1=157352&r2=157353
==============================================================================
--- httpd/apreq/branches/multi-env-unstable/glue/perl/README (original)
+++ httpd/apreq/branches/multi-env-unstable/glue/perl/README Sun Mar 13 12:31:40 2005
@@ -52,7 +52,6 @@
     add_hook (requires APR::Request::Hook)
     parser (requires APR::Request::Parser)
 
-
 ==================================================
 
 APR::Request::CGI @ISA=(APR::Request)
@@ -159,7 +158,6 @@
     upload_tempname
     upload_io
     upload_fh
-    disable_uploads
 
 --------------------------------------------------
 Current (pure-perl) Apache2:: module breakdown
@@ -170,6 +168,22 @@
   ctor:
     new
 
+  methods:
+    instance           (deprecated, ok to remove this)
+    disable_uploads
+
+  missing:
+    hook_data
+    upload_hook
+
+  2.04-deltas:
+    env() removed
+    params() method inherited from APR::Request; not deprecated anymore.
+    parms() removed
+    status() removed.
+    args() needs to become Apache2::RequestRec::args!!!
+    The args() change probably deserves a runtime warning in 2.05-dev.
+
 ==================================================
 
 Apache2::Cookie @ISA=(APR::Request::Cookie)
@@ -178,6 +192,7 @@
     Apache2::Cookie::Jar @ISA=(APR::Request::Apache2)
       methods:
         cookies
+        status
 
   subs:
     encode
@@ -191,6 +206,9 @@
     thaw
     value
 
+  2.04-deltas:
+    env() removed
+
 ==================================================
 
 Apache2::Upload @ISA=(APR::Request::Param)
@@ -208,3 +226,6 @@
     io
     filename
     bb          (need to deprecate this)
+
+  2.04-deltas:
+    Apache::Upload::Brigade is now APR::Request::Brigade.

Modified: httpd/apreq/branches/multi-env-unstable/glue/perl/lib/Apache2/Cookie.pm
URL: http://svn.apache.org/viewcvs/httpd/apreq/branches/multi-env-unstable/glue/perl/lib/Apache2/Cookie.pm?view=diff&r1=157352&r2=157353
==============================================================================
--- httpd/apreq/branches/multi-env-unstable/glue/perl/lib/Apache2/Cookie.pm (original)
+++ httpd/apreq/branches/multi-env-unstable/glue/perl/lib/Apache2/Cookie.pm Sun Mar 13 12:31:40 2005
@@ -81,5 +81,22 @@
 use APR::Request::Apache2;
 push our @ISA, qw/APR::Request::Apache2/;
 sub cookies { Apache2::Cookie->fetch(shift) }
+*Apache2::Cookie::Jar::status = *APR::Request::jar_status;
+
+my %old_args = (
+    value_class => "cookie_class",
+);
+
+sub new {
+    my $class = shift;
+    my $jar = $class->APR::Request::Apache2::new(shift);
+    my %attrs = @_;
+    while (my ($k, $v) = each %attrs) {
+        $k =~ s/^-//;
+        my $method = $old_args{lc($k)} || lc $k;
+        $jar->$method($v);
+    }
+    return $jar;
+}
 
 1;