I am trying to extract pieces of the current URL.  I see that 
`$self->req->url->to_abs()` gives me the full URL, which I could then 
decompose myself.  however,   I do not understand the documentation---I 
also see functions, like host, port, etc., already in the doc.  I first 
thought something like the following set of calls should work, but they do 
not.

## $self->req->url
##   ->to_abs:   http://a.b.c.d:1/e/f?g=h&i=j#k
##   ->fragment: k
##   ->host: a.b.c.d
##   ->port: 1
##   ->host_port: a.b.c.d:1
##   ->scheme: http
##   ->url->parse($)->host: a.b.c.d:1
##   ->url->parse($)->path: /e/f
##   ->path_query: /e/f?g=h&i=j ?#k


can I use these functions?  or should I just rewrite the URI parser myself? 
 probably has an obvious answer.

advice appreciated.

/iaw

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to