[Catalyst] Base URI breakdown

Trevor Phillips trevor.phillips at gmail.com
Sat Mar 7 05:38:06 GMT 2009


On Sat, Mar 7, 2009 at 12:25 PM, Andrew Rodland <arodland at comcast.net> wrote:
>
> $c->req->base is a URI object under all of the Engine types that I'm aware of.

Next time I should just try things before assuming the docs are absolute. ^_^

> The docs don't promise this, but they don't say it's not either. Anyway
> there's no reason you couldn't do URI->new($c->req->base) which will be a
> perfectly good URI object whether base is a URI or an unblessed string. :)

Sounds good to me. Thanks!

-- 
Trevor Phillips  - http://dortamur.livejournal.com/
"On nights such as this, evil deeds are done. And good deeds, of
course. But mostly evil, on the whole."
      -- (Terry Pratchett, Wyrd Sisters)



More information about the Catalyst mailing list