On Tue, Mar 05, 2002 at 01:01:51PM -0700, Sean M. Burke wrote:
> At 11:34 2002-03-05 -0800, Gisle Aas wrote:
> >Somewhat related:  Based on a suggestion by Sean I would like to make
> >the all the 'is_*' methods return the status_line when TRUE.  Does
> >anybody have a better suggestion for what a useful TRUE value could
> >be?
> 
> I've been trying to decide which would be better:
> $resp->status line
>    or
> $resp->request->url . " -- " . $resp->status_line
>    or
> $resp->status_line . ' at ' . $resp->request->url
> 
> I tentatively chose the first, but I'm tending to think that maybe one of 
> the latter two would be handier.

Those look more appropriate as debug messages to me.

If it's going to return a meaningful value I'd prefer status_line()
or maybe just code().

Maurice

Reply via email to