Re: [mp2]"opaque string-content tables"

[prev] [thread] [next] [Date index for 2005/02/15]

From: Stas Bekman
Subject: Re: [mp2]"opaque string-content tables"
Date: 23:12 on 15 Feb 2005
Jie Gao wrote:

>>>>What does it mean by "opaque"?
>>
>>
>>
>>On the C level that means: you can put in strings and whatever you put in
>>your get out.
>>
>>On the Perl level that means that we convert any scalars into strings and
>>store that. Any special information that was in the perl scalar is not
>>stored. So for example if a scalar was marked as utf8, that flag is lost.
> 
> 
> Thanks for the explanation.

I've committed it.

>>That explanation should probably live here:
>>http://perl.apache.org/docs/2.0/api/APR/Table.html#Description
>>
>>if the way I've put it is clear, I'll add it there.
>>
>>
>>>Also a related question about APR::Table:
>>>
>>>Does a table object contain all the name/value pairs parsed from the
>>>request line (with arguments/query strings) and from the body of the
>>>request (like from POST), in a situation of a POST form that has a
>>>query string at the end of the URL?
>>>
>>>I know the CGI module does it well, but I do not want to use that
>>>module for what I am doing at this time.
>>
>>I'm not sure I understand what you are talking about, Jie. Are we talking
>>about something like $r->headers_in table? In which case it doesn't have
>>any query string data, other than the unparsed one, which you should
>>get/set via $r->args anyway. If not, please explain.
> 
> 
> Thanks, Stas. I am now parsing both the request body and the $r->args now.

When you will want a performance boost, you will want to switch to 
libapreq2 (Apache::Request).

        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

(message missing)

[mp2]"opaque string-content tables"
Jie Gao 21:26 on 14 Feb 2005

Re: [mp2]"opaque string-content tables"
Jie Gao 21:55 on 14 Feb 2005

Re: [mp2]"opaque string-content tables"
Stas Bekman 22:52 on 15 Feb 2005

Re: [mp2]"opaque string-content tables"
Jie Gao 23:02 on 15 Feb 2005

Re: [mp2]"opaque string-content tables"
Stas Bekman 23:12 on 15 Feb 2005

Re: [mp2]"opaque string-content tables"
Jie Gao 23:22 on 15 Feb 2005

Re: [mp2]"opaque string-content tables"
Stas Bekman 23:26 on 15 Feb 2005

Re: [mp2]"opaque string-content tables"
Jie Gao 00:21 on 16 Feb 2005

Re: [mp2]"opaque string-content tables"
Stas Bekman 00:42 on 16 Feb 2005

Re: [mp2]"opaque string-content tables"
Jie Gao 03:02 on 16 Feb 2005

Re: [mp2]"opaque string-content tables"
Stas Bekman 03:23 on 16 Feb 2005

Generated at 10:23 on 16 Feb 2005 by mariachi v0.52