perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: bytes_received?
Date Thu, 09 Dec 2004 21:28:22 GMT


Stas Bekman wrote:
> [...]
> 
>> I think what Malcolm is after is the size of the initial request, message
>> body, headers, and all, which there just doesn't seem to be an easy
>> way to
>> get to.
> 
> [...]
> 
>> you might be able to glean the size from a combination of
>> $r->the_request,
>> $r->headers_in, and $r->content_length.
> 
> 
> I see. That should be relatively use to calculate with modperl2's input
> connection filter (not w/o a small overhead of course):
> http://perl.apache.org/docs/2.0/user/handlers/filters.html#Connection_Input_Filters

yup... if he's running mp2 :)

--Geoff

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Mime
View raw message