httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <>
Subject Re: [apreq-2 proposal] backporting apreq_tables to APR
Date Thu, 01 May 2003 05:32:26 GMT
Stas Bekman <> writes:

> You mean apreq returning APREQ::Table objects to the perl land and
> perl manipulating these directly, just like we do with APR::Table
> objects ($r->headers_in, etc). Correct?


> If apr won't accept your implementation than we can still have
> Apache::Request for the normal functionality, and APREQ::Table or
> Apreq::Table for your tables implementation. Also while you are at it,
> can you give an example of when do you return APREQ::Table objects?

  my $apreq = Apache::Request->new($r;
  my $jar = Apache::Cookie->new($r);
  ...parse request...

  # potential APREQ::Table objects
  my $args    = $apreq->args;
  my $body    = $apreq->body;
  my $params  = $apreq->params; # args + body
  my $cookies = $jar->cookies;

Joe Schaefer

View raw message