On Fri, May 19, 2017 at 7:34 PM, iaw4 <[email protected]> wrote:
> can I use these functions?
Yes!
> or should I just rewrite the URI parser myself?
No!!
*$ cat /tmp/url *
use 5.010;
use Mojo::URL;
my $url = Mojo::URL->new('http://a.b.c.d:1/e/f?g=h&i=j#k');
say $url->to_abs;
say $url->fragment;
say $url->host;
say $url->port;
say $url->scheme;
say $url->path_query;
*$ perl /tmp/url*
http://a.b.c.d:1/e/f?g=h&i=j#k
k
a.b.c.d
1
http
/e/f?g=h&i=j
$c->req->url <http://mojolicious.org/perldoc/Mojo/Message/Request#url> is a
Mojo::URL object (as above).
--
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.