- SEE ALSO
- LICENSE AND COPYRIGHT
WWW::AUR::URI - Generate dynamic URIs for accessing the AUR
This is a collection of functions used internally by other modules in the WWW-AUR distribution. For advanced users only.
This module exports nothing by default. You must explicitly import functions or import the
all tag to import all functions.
use WWW::AUR::URI qw( pkgfile_uri pkgbuild_uri pkg_uri rpc_uri ); use WWW::AUR::URI qw( :all );
$URI = pkgfile_uri( $PKGNAME )
$URI = pkgbuild_uri( $PKGNAME )
$URI = pkg_uri( %QUERY_PARAMS )
This generates a URI for the http://aur.archlinux.org/packages.php webpage. The one that shows package information and comments, etc.
You can supply whatever query parameters that you want. You might want to look at the AUR's HTML source to learn how they work.
One special parameter that acts differently is the
'https'parameter. If this key exists and its value is a truthy value, then the URI is given as an https link and not an http link. The
'https'parameter is also not passed in as a query parameter.
The URI to packages.php with query parameters appended.
$URI = rpc_uri( $METHOD, $ARG )
Generates a URI for the http://aur.archlinux.org/rpc.php page.
The RPC "method" to use. Possible values include:
The RPC "argument" to give to the "method".
The URI to the rpc.php page with query parameters attached.
<juster at cpan dot org>
Please email me any bugs you find. I will try to fix them as quick as I can.
Send me an email if you have any questions or need help.
Copyright 2011 Justin Davis.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.